mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #25220: Use print(flush=True) in libregrtest
This commit is contained in:
parent
76f756d934
commit
f33536c430
4 changed files with 15 additions and 25 deletions
|
@ -157,8 +157,8 @@ class Regrtest:
|
|||
return
|
||||
fmt = "[{1:{0}}{2}/{3}] {4}" if self.bad else "[{1:{0}}{2}] {4}"
|
||||
print(fmt.format(self.test_count_width, test_index,
|
||||
self.test_count, len(self.bad), test))
|
||||
sys.stdout.flush()
|
||||
self.test_count, len(self.bad), test),
|
||||
flush=True)
|
||||
|
||||
def setup_regrtest(self):
|
||||
if self.ns.huntrleaks:
|
||||
|
@ -333,8 +333,7 @@ class Regrtest:
|
|||
if self.ns.verbose2 and self.bad:
|
||||
print("Re-running failed tests in verbose mode")
|
||||
for test in self.bad[:]:
|
||||
print("Re-running test %r in verbose mode" % test)
|
||||
sys.stdout.flush()
|
||||
print("Re-running test %r in verbose mode" % test, flush=True)
|
||||
try:
|
||||
self.ns.verbose = True
|
||||
ok = runtest(test, True, self.ns.quiet, self.ns.huntrleaks,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue