diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index b1f070d1a1ccc..5153118e9b142 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -143,7 +143,7 @@ def _assert_caught_no_extra_warnings( for actual_warning in caught_warnings: if _is_unexpected_warning(actual_warning, expected_warning): unclosed = "unclosed transport