]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152548: Report a subprocess of runInSubprocess() dying after the test (GH-155162) main
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 4 Aug 2026 10:03:05 +0000 (13:03 +0300)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2026 10:03:05 +0000 (10:03 +0000)
commitef0affbf7c1cb8bbc136b65cc0f02985f8c568b5
tree726f16a5f208134f9591d6c5b0a0023190dca54d
parentce5ae29ef9b8ccb32683c922d135339311c36c9d
gh-152548: Report a subprocess of runInSubprocess() dying after the test (GH-155162)

The subprocess writes the result of the test before exiting, so a crash
during interpreter finalization left the result intact and the test was
reported as passed.  Check the exit code too, after replaying the outcomes,
so that a failure of the test itself is still reported as a failure.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Lib/test/_isolated_sample.py
Lib/test/support/isolation.py
Lib/test/test_support.py