Skip to content

Commit 881c37a

Browse files
authored
fix test for SSL warning (#41270)
1 parent 526468c commit 881c37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_testing/_warnings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _assert_caught_no_extra_warnings(
144144
if _is_unexpected_warning(actual_warning, expected_warning):
145145
unclosed = "unclosed transport <asyncio.sslproto._SSLProtocolTransport"
146146
if isinstance(actual_warning, ResourceWarning) and unclosed in str(
147-
actual_warning
147+
actual_warning.message
148148
):
149149
# FIXME: kludge because pytest.filterwarnings does not
150150
# suppress these, xref GH#38630

0 commit comments

Comments
 (0)