diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:23:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:23:43 (GMT) |
commit | c3816b70e0d038788e86fb9208095a506842a1f5 (patch) | |
tree | f5f61bb731201702fe161d4dd5dc632258bdd648 | |
parent | b18b2d797b684d6b54e1f24cce684777d5f771a0 (diff) | |
parent | 27d411255a6ce350e577a248181e329183ec36c1 (diff) | |
download | cpython-c3816b70e0d038788e86fb9208095a506842a1f5.zip cpython-c3816b70e0d038788e86fb9208095a506842a1f5.tar.gz cpython-c3816b70e0d038788e86fb9208095a506842a1f5.tar.bz2 |
(Merge 3.4) Issue #21651: Fix ResourceWarning when running asyncio tests on
Windows. Patch written by Claudiu Popa.
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |