summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_support.py4
1 files changed, 3 insertions, 1 deletions
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