File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5050
5151
5252def pytest_configure (config : pytest .Config ) -> None :
53+ # On Windows with Python 3.10/3.11, proxy.py's threaded mode can leave
54+ # sockets not fully released by the time pytest's unraisableexception
55+ # plugin collects warnings during teardown. Suppress these warnings
56+ # since they are not actionable and only affect older Python versions.
5357 if os .name == "nt" and sys .version_info [:2 ] in ((3 , 10 ), (3 , 11 )):
5458 config .addinivalue_line (
5559 "filterwarnings" ,
@@ -477,8 +481,8 @@ def maker(
477481 yield maker
478482
479483 await asyncio .gather (
480- * [ request ._close () for request in requests ] ,
481- * [ session .close () for session in sessions ] ,
484+ * ( request ._close () for request in requests ) ,
485+ * ( session .close () for session in sessions ) ,
482486 )
483487
484488
You can’t perform that action at this time.
0 commit comments