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).
This commit is contained in:
Tim Peters 2006-03-10 23:37:10 +00:00
parent 04824ce8ed
commit 922dd7d49d
1 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
if verbose2 and bad:
print "Re-running failed tests in verbose mode"
for test in bad:
print "Re-running test %r in verbose mode" % test
sys.stdout.flush()
try:
test_support.verbose = 1
ok = runtest(test, generate, 1, quiet, testdir,