mirror of https://github.com/python/cpython
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:
parent
04824ce8ed
commit
922dd7d49d
|
@ -404,6 +404,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
|
||||||
if verbose2 and bad:
|
if verbose2 and bad:
|
||||||
print "Re-running failed tests in verbose mode"
|
print "Re-running failed tests in verbose mode"
|
||||||
for test in bad:
|
for test in bad:
|
||||||
|
print "Re-running test %r in verbose mode" % test
|
||||||
|
sys.stdout.flush()
|
||||||
try:
|
try:
|
||||||
test_support.verbose = 1
|
test_support.verbose = 1
|
||||||
ok = runtest(test, generate, 1, quiet, testdir,
|
ok = runtest(test, generate, 1, quiet, testdir,
|
||||||
|
|
Loading…
Reference in New Issue