Fix ResourceWarning in test_asyncio.test_windows_events:

close the write end of the socket pair
This commit is contained in:
Victor Stinner 2014-01-11 00:16:50 +01:00
parent 7de2646cdf
commit 5e42354263
1 changed files with 1 additions and 0 deletions

View 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()