We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18094a8 commit 98ec964Copy full SHA for 98ec964
tests/test_event_loop_scope.py
@@ -34,4 +34,7 @@ def test_3():
34
def test_4(event_loop):
35
# If a test sets the loop to None -- pytest_fixture_post_finalizer()
36
# still should work
37
+
38
+ # Close to avoid ResourceWarning about unclosed socket as a side effect
39
+ event_loop.close()
40
asyncio.get_event_loop_policy().set_event_loop(None)
0 commit comments