Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 922dd7d

Browse files
committed
When the new -w option (yay! great idea) reruns a
failed test, first display the name of the test (else it's not always clear from the output which test is getting run).
1 parent 04824ce commit 922dd7d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/regrtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
404404
if verbose2 and bad:
405405
print "Re-running failed tests in verbose mode"
406406
for test in bad:
407+
print "Re-running test %r in verbose mode" % test
408+
sys.stdout.flush()
407409
try:
408410
test_support.verbose = 1
409411
ok = runtest(test, generate, 1, quiet, testdir,

0 commit comments

Comments
 (0)