]> granicus.if.org Git - python/commitdiff
Fix ResourceWarning in test_asyncio.test_windows_events:
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Jan 2014 23:16:50 +0000 (00:16 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Jan 2014 23:16:50 +0000 (00:16 +0100)
close the write end of the socket pair

Lib/test/test_asyncio/test_windows_events.py

index b32477f9d4b1999c2402dbe96efc7d997200d063..17c204a7563cc033436154e22f6354f7be87af76 100644 (file)
@@ -49,6 +49,7 @@ class ProactorTests(unittest.TestCase):
         trans.close()
         self.loop.run_until_complete(f)
         self.assertEqual(f.result(), b'')
+        b.close()
 
     def test_double_bind(self):
         ADDRESS = r'\\.\pipe\test_double_bind-%s' % os.getpid()