From 27d411255a6ce350e577a248181e329183ec36c1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 4 Jun 2014 00:23:26 +0200 Subject: Issue #21651: Fix ResourceWarning when running asyncio tests on Windows. Patch written by Claudiu Popa. --- Lib/test/test_asyncio/test_events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 03c4149..e19d991 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -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) -- cgit v0.12