Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e42354

Browse files
committed
Fix ResourceWarning in test_asyncio.test_windows_events:
close the write end of the socket pair
1 parent 7de2646 commit 5e42354

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_asyncio/test_windows_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_close(self):
4949
trans.close()
5050
self.loop.run_until_complete(f)
5151
self.assertEqual(f.result(), b'')
52+
b.close()
5253

5354
def test_double_bind(self):
5455
ADDRESS = r'\\.\pipe\test_double_bind-%s' % os.getpid()

0 commit comments

Comments
 (0)