diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:23:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:23:26 (GMT) |
commit | 27d411255a6ce350e577a248181e329183ec36c1 (patch) | |
tree | e259afbc2da3049bb26610ad2c63d8516195f133 | |
parent | 8551e0f3e03f950275ab5ca736c70c1e08acc5ef (diff) | |
download | cpython-27d411255a6ce350e577a248181e329183ec36c1.zip cpython-27d411255a6ce350e577a248181e329183ec36c1.tar.gz cpython-27d411255a6ce350e577a248181e329183ec36c1.tar.bz2 |
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) |