We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526468c commit 881c37aCopy full SHA for 881c37a
pandas/_testing/_warnings.py
@@ -144,7 +144,7 @@ def _assert_caught_no_extra_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(
147
- actual_warning
+ actual_warning.message
148
):
149
# FIXME: kludge because pytest.filterwarnings does not
150
# suppress these, xref GH#38630
0 commit comments