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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27d411255a6ce350e577a248181e329183ec36c1;p=thirdparty%2FPython%2Fcpython.git 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 03c414914a76..e19d991fc44f 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)