summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-17 00:58:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-17 00:58:33 (GMT)
commit35b34bd3260516e2a6d9073d14e2424dd7f40b66 (patch)
treea253ddb9fcd09db044a46ec60abfaac84609d2de /Lib/test/test_support.py
parent929f06c5709fe755d8fe519676c5642cfa50ade8 (diff)
downloadcpython-35b34bd3260516e2a6d9073d14e2424dd7f40b66.zip
cpython-35b34bd3260516e2a6d9073d14e2424dd7f40b66.tar.gz
cpython-35b34bd3260516e2a6d9073d14e2424dd7f40b66.tar.bz2
Provide a clue that the doctests have run.
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