We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e657c30 commit 9155528Copy full SHA for 9155528
pandas/_testing/_warnings.py
@@ -143,7 +143,7 @@ def _assert_caught_no_extra_warnings(
143
for actual_warning in caught_warnings:
144
if _is_unexpected_warning(actual_warning, expected_warning):
145
unclosed = "unclosed transport <asyncio.sslproto._SSLProtocolTransport"
146
- if isinstance(actual_warning, ResourceWarning) and unclosed in str(
+ if actual_warning.category == ResourceWarning and unclosed in str(
147
actual_warning.message
148
):
149
# FIXME: kludge because pytest.filterwarnings does not
0 commit comments