https://github.com/python/cpython/commit/786a6af23ad96fe060a17332f6986a5ac6b5545e commit: 786a6af23ad96fe060a17332f6986a5ac6b5545e branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-11-08T15:08:07Z summary:
[3.15] gh-161609: Catch ProcessLookupError on os.getsid() in regrtest (GH-161610) (#161613) gh-161609: Catch ProcessLookupError on os.getsid() in regrtest (GH-161610) (cherry picked from commit 3ad9ded4635547c4b9ee6bf4b58c6f3bb890bc39) Co-authored-by: Victor Stinner <[email protected]> files: M Lib/test/libregrtest/run_workers.py diff --git a/Lib/test/libregrtest/run_workers.py b/Lib/test/libregrtest/run_workers.py index 1c94a15a1868bb..6d18c2d668cf9c 100644 --- a/Lib/test/libregrtest/run_workers.py +++ b/Lib/test/libregrtest/run_workers.py @@ -153,6 +153,9 @@ def _kill(self) -> None: # On OpenBSD getsid() is only allowed for a process in the # same session, so the failure means that it is not. use_killpg = True + except ProcessLookupError: + # The process completed in the meanwhile + return if use_killpg: what = f"{self} process group" _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
