]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109276, gh-109508: Fix libregrtest stdout (#109903)
authorVictor Stinner <vstinner@python.org>
Tue, 26 Sep 2023 19:34:50 +0000 (21:34 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2023 19:34:50 +0000 (21:34 +0200)
commitb1e4f6e83e8916005caa3f751f25fb58cccbf812
tree87131de209599f2cd2c36165b26744cf9bf19134
parentae1d99c2ed9d44b2554129f3a85b97a31119bccc
gh-109276, gh-109508: Fix libregrtest stdout (#109903)

Remove replace_stdout(): call sys.stdout.reconfigure() instead of set
the error handler to backslashreplace.

display_header() logs an empty line and flush stdout.

Remove encoding workaround in display_header() since stdout error
handler is now set to backslashreplace earlier.
Doc/using/configure.rst
Lib/test/libregrtest/main.py
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/utils.py