mirror of https://github.com/python/cpython
Fix ResourceWarning in test_asyncio.test_windows_events:
close the write end of the socket pair
This commit is contained in:
parent
7de2646cdf
commit
5e42354263
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue