diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index b78cfd3fb39fb..44a62e607555e 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -2,6 +2,7 @@ from contextlib import contextmanager import re +import subprocess from typing import ( Sequence, Type, @@ -147,17 +148,27 @@ def _assert_caught_no_extra_warnings( for actual_warning in caught_warnings: if _is_unexpected_warning(actual_warning, expected_warning): - # GH 44732: Don't make the CI flaky by filtering SSL-related - # ResourceWarning from dependencies # GH#38630 pytest.filterwarnings does not suppress these. - unclosed_ssl = ( - "unclosed transport