]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45410: regrtest replaces print_warning.orig_stderr (GH-28926)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Oct 2021 15:35:21 +0000 (17:35 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 15:35:21 +0000 (17:35 +0200)
commit676201a59f90caace606d11d4172aa74c1cd4992
tree50cafc224f0bebf5ecb386caea9fd518aca5b4d0
parent713bb19356bce9b8f2b95461834fe1dae505f889
bpo-45410: regrtest replaces print_warning.orig_stderr (GH-28926)

When running Python tests with -W, runtest() now replaces
support.print_warning.orig_stderr to preserve the messages order.

Add an unit test.
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/save_env.py
Lib/test/test_regrtest.py