[Python-checkins] cpython (merge 3.4 -> default): (Merge 3.4) Issue #21651: Fix ResourceWarning when running asyncio tests on

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


http://hg.python.org/cpython/rev/b2f329e9cd18
changeset:   91006:b2f329e9cd18
parent:      91004:e7c438963c63
parent:      91005:9d2c0b41c1d5
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 04 00:23:43 2014 +0200
summary:
  (Merge 3.4) 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