diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-05 21:40:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 21:40:49 (GMT) |
commit | aaf297c048694cd9652790f8b74e69f7ddadfbde (patch) | |
tree | f42eb8c344c7080fdac985389e97357723d2c76d /Misc/NEWS.d/next/C API/2023-09-06-00-14-49.gh-issue-85283.GKY0Cc.rst | |
parent | fb6c4ed2bbb2a867d5f0b9a94656e4714be5d9c2 (diff) | |
download | cpython-aaf297c048694cd9652790f8b74e69f7ddadfbde.zip cpython-aaf297c048694cd9652790f8b74e69f7ddadfbde.tar.gz cpython-aaf297c048694cd9652790f8b74e69f7ddadfbde.tar.bz2 |
gh-109888: Fix test_os _kill_with_event() on Windows (#110421)
Replace os.kill() with proc.kill() which catchs PermissionError.
Rewrite _kill_with_event():
* Use subprocess context manager ("with proc:").
* Use sleeping_retry() to wait until the child process is ready.
* Replace SIGINT with proc.kill() on error.
* Replace 10 seconds with SHORT_TIMEOUT to wait until the process is
ready.
* Replace 0.5 seconds with SHORT_TIMEOUT to wait for the process
exit.
Diffstat (limited to 'Misc/NEWS.d/next/C API/2023-09-06-00-14-49.gh-issue-85283.GKY0Cc.rst')
0 files changed, 0 insertions, 0 deletions