Skip to content

Commit 9155528

Browse files
authored
CI: Fix warning from SSL transport (again) (#41279)
1 parent e657c30 commit 9155528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_testing/_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _assert_caught_no_extra_warnings(
143143
for actual_warning in caught_warnings:
144144
if _is_unexpected_warning(actual_warning, expected_warning):
145145
unclosed = "unclosed transport <asyncio.sslproto._SSLProtocolTransport"
146-
if isinstance(actual_warning, ResourceWarning) and unclosed in str(
146+
if actual_warning.category == ResourceWarning and unclosed in str(
147147
actual_warning.message
148148
):
149149
# FIXME: kludge because pytest.filterwarnings does not

0 commit comments

Comments
 (0)