[Python-checkins] test.regrtest: flush stdout to display progress (#7120)

Victor Stinner webhook-mailer at python.org
Mon May 28 07:30:45 EDT 2018


https://github.com/python/cpython/commit/1da37adc281286b8ef9ff3e882fe9de35c23507f
commit: 1da37adc281286b8ef9ff3e882fe9de35c23507f
branch: 2.7
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018年05月28日T13:30:42+02:00
summary:
test.regrtest: flush stdout to display progress (#7120)
Call sys.stdout.flush() after displaying "running: ...".
files:
M Lib/test/regrtest.py
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 6df8f86d9579..c4f27814029c 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -782,6 +782,7 @@ def get_running(workers):
 running = get_running(workers)
 if running and not pgo:
 print('running: %s' % ', '.join(running))
+ sys.stdout.flush()
 continue
 
 test, stdout, stderr, result = item
@@ -802,7 +803,7 @@ def get_running(workers):
 display_progress(test_index, text)
 
 if stdout:
- print stdout
+ print(stdout)
 sys.stdout.flush()
 if stderr and not pgo:
 print >>sys.stderr, stderr


More information about the Python-checkins mailing list

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