summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-29 00:38:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-29 00:38:17 (GMT)
commitdf7a208ff70a66f4384252d12768dbd9e7c60204 (patch)
treec4a787727f2524f06f5882e61e2ccb4a7cb9249d /Lib/doctest.py
parentfafd874bc8ae89a9c145e38d94cb14e628fcad34 (diff)
downloadcpython-df7a208ff70a66f4384252d12768dbd9e7c60204.zip
cpython-df7a208ff70a66f4384252d12768dbd9e7c60204.tar.gz
cpython-df7a208ff70a66f4384252d12768dbd9e7c60204.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 67907a5..988707b 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -2014,7 +2014,7 @@ def set_unittest_reportflags(flags):
>>> doctest._unittest_reportflags == (REPORT_NDIFF |
... REPORT_ONLY_FIRST_FAILURE)
True
-
+
Only reporting flags can be set:
>>> set_unittest_reportflags(ELLIPSIS)
@@ -2036,17 +2036,17 @@ def set_unittest_reportflags(flags):
if nrflags:
raise ValueError("Invalid flags passed", flags)
-
+
global _unittest_reportflags
old = _unittest_reportflags
_unittest_reportflags = flags
return old
-
+
class FakeModule:
"""Fake module created by tests
"""
-
+
def __init__(self, dict, name):
self.__dict__ = dict
self.__name__ = name
@@ -2065,7 +2065,7 @@ class DocTestCase(unittest.TestCase):
def setUp(self):
test = self._dt_test
-
+
if self._dt_setUp is not None:
self._dt_setUp(test)
@@ -2082,12 +2082,12 @@ class DocTestCase(unittest.TestCase):
old = sys.stdout
new = StringIO()
optionflags = self._dt_optionflags
-
+
if not (optionflags & valid_unittest_reportflags):
# The option flags don't include any reporting flags,
# so add the default reporting flags
optionflags |= _unittest_reportflags
-
+
runner = DocTestRunner(optionflags=optionflags,
checker=self._dt_checker, verbose=False)
@@ -2327,7 +2327,7 @@ def DocFileSuite(*paths, **kw):
optionflags
A set of doctest option flags expressed as an integer.
-
+
"""
suite = unittest.TestSuite()