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

Patch written by Claudiu Popa.
This commit is contained in:
Victor Stinner 2014-06-04 00:23:26 +02:00
parent 8551e0f3e0
commit 27d411255a
1 changed files with 1 additions and 0 deletions

View File

@ -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)