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

Skip to content

Commit e7a2f64

Browse files
committed
asyncio: Fix warning in test_close_kill_running()
Read process exit status to avoid the "Caught subprocess termination from unknown pid" message.
1 parent f91d845 commit e7a2f64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def kill():
367367
proc.kill = kill
368368
returncode = transport.get_returncode()
369369
transport.close()
370+
yield from transport._wait()
370371
return (returncode, kill_called)
371372

372373
# Ignore "Close running child process: kill ..." log

0 commit comments

Comments
 (0)