diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-10 23:16:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-10 23:16:50 (GMT) |
commit | 5e42354263cadce4e56098cf3f4d8760e8569108 (patch) | |
tree | 0e8ec7c9ecfeebfbf86af19a04af66b2ef3cd4be | |
parent | 7de2646cdf70fda17fffd369fa7c1784afc1ab00 (diff) | |
download | cpython-5e42354263cadce4e56098cf3f4d8760e8569108.zip cpython-5e42354263cadce4e56098cf3f4d8760e8569108.tar.gz cpython-5e42354263cadce4e56098cf3f4d8760e8569108.tar.bz2 |
Fix ResourceWarning in test_asyncio.test_windows_events:
close the write end of the socket pair
-rw-r--r-- | Lib/test/test_asyncio/test_windows_events.py | 1 |
1 files changed, 1 insertions, 0 deletions
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() |