From 35b34bd3260516e2a6d9073d14e2424dd7f40b66 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 17 May 2003 00:58:33 +0000 Subject: [PATCH] Provide a clue that the doctests have run. --- Lib/test/test_support.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 57bca382eb0..467187e670b 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