[Python-checkins] cpython: regrtest: add -u for unbuffered stdout/stderr

victor.stinner python-checkins at python.org
Wed Sep 21 11:20:46 EDT 2016


https://hg.python.org/cpython/rev/87da80a56f94
changeset: 103996:87da80a56f94
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Sep 21 17:12:50 2016 +0200
summary:
 regrtest: add -u for unbuffered stdout/stderr
files:
 Lib/test/libregrtest/runtest_mp.py | 2 +-
 PCbuild/rt.bat | 2 +-
 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
--- a/Lib/test/libregrtest/runtest_mp.py
+++ b/Lib/test/libregrtest/runtest_mp.py
@@ -41,7 +41,7 @@
 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
--- a/PCbuild/rt.bat
+++ b/PCbuild/rt.bat
@@ -42,7 +42,7 @@
 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
--- a/Tools/scripts/run_tests.py
+++ b/Tools/scripts/run_tests.py
@@ -26,6 +26,7 @@
 
 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
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /