Commit 676d17ae authored by Raymond Hettinger's avatar Raymond Hettinger

Provide a clue that the doctests have run.

parent 284e2fa0
...@@ -285,6 +285,8 @@ def run_doctest(module, verbosity=None): ...@@ -285,6 +285,8 @@ def run_doctest(module, verbosity=None):
f, t = doctest.testmod(module, verbose=verbosity) f, t = doctest.testmod(module, verbose=verbosity)
if f: if f:
raise TestFailed("%d of %d doctests failed" % (f, t)) raise TestFailed("%d of %d doctests failed" % (f, t))
return f, t
finally: finally:
sys.stdout = save_stdout sys.stdout = save_stdout
if verbose:
print 'Ran %d doctests with zero failures' % (t,)
return f, t
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment