From: Raymond Hettinger Date: Sat, 17 May 2003 00:58:33 +0000 (+0000) Subject: Provide a clue that the doctests have run. X-Git-Tag: v2.3c1~697 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35b34bd3260516e2a6d9073d14e2424dd7f40b66;p=python Provide a clue that the doctests have run. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 57bca382eb..467187e670 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -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