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.
This commit is contained in:
Victor Stinner 2023-09-26 21:34:50 +02:00 committed by GitHub
parent ae1d99c2ed
commit b1e4f6e83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 53 deletions

View file

@ -965,7 +965,7 @@ Main Makefile targets
this the default target of the ``make`` command (``make all`` or just
``make``).
* ``make test``: Build Python and run the Python test suite with ``--slow-ci``
* ``make test``: Build Python and run the Python test suite with ``--fast-ci``
option. Variables:
* ``TESTOPTS``: additional regrtest command line options.