]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)
authorVictor Stinner <vstinner@python.org>
Mon, 3 Aug 2020 20:51:23 +0000 (22:51 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Aug 2020 20:51:23 +0000 (22:51 +0200)
commit701b63894fdb75b12865b9be6261ce4913da76f5
tree89db278afe0bb0be142c6509e18915c0b8fc1db2
parent4660597b51b3d14ce6269d0ed865ab7e22c6ae1f
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)

regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py