File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,14 @@ def _assert_caught_no_extra_warnings(
147
147
148
148
for actual_warning in caught_warnings :
149
149
if _is_unexpected_warning (actual_warning , expected_warning ):
150
- unclosed = "unclosed transport <asyncio.sslproto._SSLProtocolTransport"
151
- if actual_warning .category == ResourceWarning and unclosed in str (
152
- actual_warning .message
150
+ # GH 44732: Don't make the CI flaky by filtering SSL-related
151
+ # ResourceWarning from dependencies
152
+ unclosed_ssl = (
153
+ "unclosed transport <asyncio.sslproto._SSLProtocolTransport" ,
154
+ "unclosed <ssl.SSLSocket" ,
155
+ )
156
+ if actual_warning .category == ResourceWarning and any (
157
+ msg in str (actual_warning .message ) for msg in unclosed_ssl
153
158
):
154
159
# FIXME(GH#38630): kludge because pytest.filterwarnings does not
155
160
# suppress these
You can’t perform that action at this time.
0 commit comments