]> granicus.if.org Git - python/commitdiff
When the new -w option (yay! great idea) reruns a
authorTim Peters <tim.peters@gmail.com>
Fri, 10 Mar 2006 23:37:10 +0000 (23:37 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 10 Mar 2006 23:37:10 +0000 (23:37 +0000)
failed test, first display the name of the test (else
it's not always clear from the output which test is
getting run).

Lib/test/regrtest.py

index a1f237dc66cbd93c7893542d8fc491515840c33d..b4c229ac4bc7f73c0592201bd5a477e3212a35d3 100755 (executable)
@@ -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,