(Merge 3.4) 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:43 +02:00
commit c3816b70e0
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)