Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
Patch written by Claudiu Popa.
This commit is contained in:
parent
8551e0f3e0
commit
27d411255a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue