summaryrefslogtreecommitdiffstats
path: root/Lib/test/__main__.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-26 18:46:52 (GMT)
committerGitHub <noreply@github.com>2023-09-26 18:46:52 (GMT)
commitfbfec5642edd9d7690bbff088ee43c08e8067044 (patch)
tree83d83c672f597aa789b2e8a3553c0bcdd47c5def /Lib/test/__main__.py
parentecd813f054e0dee890d484b8210e202175abd632 (diff)
downloadcpython-fbfec5642edd9d7690bbff088ee43c08e8067044.zip
cpython-fbfec5642edd9d7690bbff088ee43c08e8067044.tar.gz
cpython-fbfec5642edd9d7690bbff088ee43c08e8067044.tar.bz2
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.
Diffstat (limited to 'Lib/test/__main__.py')
-rw-r--r--Lib/test/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/__main__.py b/Lib/test/__main__.py
index e5780b7..42553fa 100644
--- a/Lib/test/__main__.py
+++ b/Lib/test/__main__.py
@@ -1,2 +1,2 @@
from test.libregrtest.main import main
-main()
+main(reexec=True)