[Python-checkins] cpython (3.4): Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.

victor.stinner python-checkins at python.org
Wed Jun 4 00:29:12 CEST 2014


http://hg.python.org/cpython/rev/9d2c0b41c1d5
changeset:   91005:9d2c0b41c1d5
branch:      3.4
parent:      91003:ebd5af6ed37c
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 04 00:23:26 2014 +0200
summary:
  Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
Patch written by Claudiu Popa.

files:
  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
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1070,6 +1070,7 @@
     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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list