From: Victor Stinner Date: Tue, 3 Jun 2014 22:23:26 +0000 (+0200) Subject: Issue #21651: Fix ResourceWarning when running asyncio tests on Windows. X-Git-Tag: v3.4.2rc1~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27d411255a6ce350e577a248181e329183ec36c1;p=python Issue #21651: Fix ResourceWarning when running asyncio tests on Windows. Patch written by Claudiu Popa. --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 03c414914a..e19d991fc4 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)