summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-03 22:23:26 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-03 22:23:26 (GMT)
commit27d411255a6ce350e577a248181e329183ec36c1 (patch)
treee259afbc2da3049bb26610ad2c63d8516195f133 /Lib/test
parent8551e0f3e03f950275ab5ca736c70c1e08acc5ef (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_events.py1
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)