Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(40854)

Unified Diff: Lib/test/support.py

Issue 7652: Merge C version of decimal into py3k.
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/decimal.py ('k') | Lib/test/test_decimal.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/support.py Sat Mar 10 16:11:49 2012 +0000
+++ b/Lib/test/support.py Sat Mar 10 18:12:20 2012 +0100
@@ -1416,7 +1416,7 @@
#=======================================================================
# doctest driver.
-def run_doctest(module, verbosity=None):
+def run_doctest(module, verbosity=None, optionflags=0):
"""Run doctest on the given module. Return (#failures, #tests).
If optional argument verbosity is not specified (or is None), pass
@@ -1431,7 +1431,7 @@
else:
verbosity = None
- f, t = doctest.testmod(module, verbose=verbosity)
+ f, t = doctest.testmod(module, verbose=verbosity, optionflags=optionflags)
if f:
raise TestFailed("%d of %d doctests failed" % (f, t))
if verbose:
« no previous file with comments | « Lib/decimal.py ('k') | Lib/test/test_decimal.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+