]> granicus.if.org Git - python/commitdiff
Provide a clue that the doctests have run.
authorRaymond Hettinger <python@rcn.com>
Sat, 17 May 2003 00:58:33 +0000 (00:58 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 17 May 2003 00:58:33 +0000 (00:58 +0000)
Lib/test/test_support.py

index 57bca382eb0226625d8cc5a718807c87e168ac3c..467187e670b4e93abae52e50e3b0049bdc0f32bd 100644 (file)
@@ -285,6 +285,8 @@ def run_doctest(module, verbosity=None):
         f, t = doctest.testmod(module, verbose=verbosity)
         if f:
             raise TestFailed("%d of %d doctests failed" % (f, t))
-        return f, t
     finally:
         sys.stdout = save_stdout
+    if verbose:
+        print 'Ran %d doctests with zero failures' % (t,)
+    return f, t