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

Skip to content

Commit 0698638

Browse files
committed
asyncio: Fix ResourceWarning in test_subprocess.test_proc_exit()
1 parent 47cd10d commit 0698638

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def test_proc_exited(self):
8787
self.assertRaises(ProcessLookupError, transport.terminate)
8888
self.assertRaises(ProcessLookupError, transport.kill)
8989

90+
transport.close()
91+
9092

9193
class SubprocessMixin:
9294

0 commit comments

Comments
 (0)