summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-03 22:23:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-03 22:23:43 (GMT)
commitc3816b70e0d038788e86fb9208095a506842a1f5 (patch)
treef5f61bb731201702fe161d4dd5dc632258bdd648
parentb18b2d797b684d6b54e1f24cce684777d5f771a0 (diff)
parent27d411255a6ce350e577a248181e329183ec36c1 (diff)
downloadcpython-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.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)