File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,14 @@ def _assert_caught_no_extra_warnings(
142
142
143
143
for actual_warning in caught_warnings :
144
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
148
+ ):
149
+ # FIXME: kludge because pytest.filterwarnings does not
150
+ # suppress these, xref GH#38630
151
+ continue
152
+
145
153
extra_warnings .append (
146
154
(
147
155
actual_warning .category .__name__ ,
Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ xfail_strict = True
137
137
filterwarnings =
138
138
error:Sparse:FutureWarning
139
139
error:The SparseArray:FutureWarning
140
- ignore:unclosed transport <asyncio.sslproto:ResourceWarning
141
140
junit_family = xunit2
142
141
143
142
[codespell]
You can’t perform that action at this time.
0 commit comments