]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH...
authorVictor Stinner <vstinner@python.org>
Tue, 11 Aug 2020 15:03:33 +0000 (17:03 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Aug 2020 15:03:33 +0000 (17:03 +0200)
commita0b57b3317d6653255415af5228c94485aa57a0d
treeca591ab074333e549bb2bbcdfa62320730832d39
parent2cd58d8bb15c1afaeef59106941d6db697074ce8
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH-21827)

regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.

(cherry picked from commit 701b63894fdb75b12865b9be6261ce4913da76f5)
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py