summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/C API/2023-09-06-00-14-49.gh-issue-85283.GKY0Cc.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-05 21:40:49 (GMT)
committerGitHub <noreply@github.com>2023-10-05 21:40:49 (GMT)
commitaaf297c048694cd9652790f8b74e69f7ddadfbde (patch)
treef42eb8c344c7080fdac985389e97357723d2c76d /Misc/NEWS.d/next/C API/2023-09-06-00-14-49.gh-issue-85283.GKY0Cc.rst
parentfb6c4ed2bbb2a867d5f0b9a94656e4714be5d9c2 (diff)
downloadcpython-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