From 5e42354263cadce4e56098cf3f4d8760e8569108 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 11 Jan 2014 00:16:50 +0100 Subject: Fix ResourceWarning in test_asyncio.test_windows_events: close the write end of the socket pair --- Lib/test/test_asyncio/test_windows_events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py index b32477f..17c204a 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() -- cgit v0.12