diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-21 15:12:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-21 15:12:50 (GMT) |
commit | 3e56c23e7dffceda8e6a729041fbc25347c67320 (patch) | |
tree | c9ea402395a5dc448b2accf50a93dcddf0554635 | |
parent | 78c13021dbf7ce21d6ebd029ffe45db5c5f0acfb (diff) | |
download | cpython-3e56c23e7dffceda8e6a729041fbc25347c67320.zip cpython-3e56c23e7dffceda8e6a729041fbc25347c67320.tar.gz cpython-3e56c23e7dffceda8e6a729041fbc25347c67320.tar.bz2 |
regrtest: add -u for unbuffered stdout/stderr
-rw-r--r-- | Lib/test/libregrtest/runtest_mp.py | 2 | ||||
-rw-r--r-- | PCbuild/rt.bat | 2 | ||||
-rw-r--r-- | Tools/scripts/run_tests.py | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py index 9604c16..74ac4fa 100644 --- a/Lib/test/libregrtest/runtest_mp.py +++ b/Lib/test/libregrtest/runtest_mp.py @@ -41,7 +41,7 @@ def run_test_in_subprocess(testname, ns): slaveargs = json.dumps(slaveargs) cmd = [sys.executable, *support.args_from_interpreter_flags(), - '-X', 'faulthandler', + '-u', # Unbuffered stdout and stderr '-m', 'test.regrtest', '--slaveargs', slaveargs] if ns.pgo: diff --git a/PCbuild/rt.bat b/PCbuild/rt.bat index 7d4d071..bb89f91 100644 --- a/PCbuild/rt.bat +++ b/PCbuild/rt.bat @@ -42,7 +42,7 @@ if "%1"=="-x64" (set prefix=%pcbuild%amd64\) & shift & goto CheckOpts if NOT "%1"=="" (set regrtestargs=%regrtestargs% %1) & shift & goto CheckOpts
set exe=%prefix%python%suffix%.exe
-set cmd="%exe%" %dashO% -Wd -E -bb -m test %regrtestargs%
+set cmd="%exe%" %dashO% -u -Wd -E -bb -m test %regrtestargs%
if defined qmode goto Qmode
echo Deleting .pyc/.pyo files ...
diff --git a/Tools/scripts/run_tests.py b/Tools/scripts/run_tests.py index b582e13..3028302 100644 --- a/Tools/scripts/run_tests.py +++ b/Tools/scripts/run_tests.py @@ -26,6 +26,7 @@ def is_resource_use_flag(arg): def main(regrtest_args): args = [sys.executable, + '-u', # Unbuffered stdout and stderr '-W', 'default', # Warnings set to 'default' '-bb', # Warnings about bytes/bytearray '-E', # Ignore environment variables |