summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_support.py')
-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 57bca38..467187e 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