From: Victor Stinner Date: Fri, 10 Jan 2014 23:16:50 +0000 (+0100) Subject: Fix ResourceWarning in test_asyncio.test_windows_events: X-Git-Tag: v3.4.0b3~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e42354263cadce4e56098cf3f4d8760e8569108;p=python Fix ResourceWarning in test_asyncio.test_windows_events: close the write end of the socket pair --- diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py index b32477f9d4..17c204a756 100644 --- a/Lib/test/test_asyncio/test_windows_events.py +++ b/Lib/test/test_asyncio/test_windows_events.py @@ -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()