]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109566: regrtest reexecutes the process (#109909)
authorVictor Stinner <vstinner@python.org>
Tue, 26 Sep 2023 18:46:52 +0000 (20:46 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2023 18:46:52 +0000 (20:46 +0200)
commitfbfec5642edd9d7690bbff088ee43c08e8067044
tree83d83c672f597aa789b2e8a3553c0bcdd47c5def
parentecd813f054e0dee890d484b8210e202175abd632
gh-109566: regrtest reexecutes the process (#109909)

When --fast-ci or --slow-ci option is used, regrtest now replaces the
current process with a new process to add "-u -W default -bb -E"
options to Python.

Changes:

* PCbuild/rt.bat and Tools/scripts/run_tests.py no longer need to add
  "-u -W default -bb -E" options to Python: it's now done by
  regrtest.
* Fix Tools/scripts/run_tests.py: flush stdout before replacing the
  process. Previously, buffered messages were lost.
Lib/test/__main__.py
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2023-09-26-18-12-01.gh-issue-109566.CP0Vhf.rst [new file with mode: 0644]
PCbuild/rt.bat
Tools/scripts/run_tests.py