Commit 27d41125 authored by Victor Stinner's avatar Victor Stinner

Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.

Patch written by Claudiu Popa.
parent 8551e0f3
......@@ -1070,6 +1070,7 @@ class EventLoopTestsMixin:
def test_internal_fds(self):
loop = self.create_event_loop()
if not isinstance(loop, selector_events.BaseSelectorEventLoop):
loop.close()
self.skipTest('loop is not a BaseSelectorEventLoop')
self.assertEqual(1, loop._internal_fds)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment