[Python-checkins] python/dist/src/Lib doctest.py,1.95,1.96
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sun Aug 29 02:38:19 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12322/Lib
Modified Files:
doctest.py
Log Message:
Whitespace normalization.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- doctest.py 28 Aug 2004 14:57:55 -0000 1.95
+++ doctest.py 29 Aug 2004 00:38:16 -0000 1.96
@@ -2014,7 +2014,7 @@
>>> doctest._unittest_reportflags == (REPORT_NDIFF |
... REPORT_ONLY_FIRST_FAILURE)
True
-
+
Only reporting flags can be set:
>>> set_unittest_reportflags(ELLIPSIS)
@@ -2036,17 +2036,17 @@
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 @@
def setUp(self):
test = self._dt_test
-
+
if self._dt_setUp is not None:
self._dt_setUp(test)
@@ -2082,12 +2082,12 @@
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 @@
optionflags
A set of doctest option flags expressed as an integer.
-
+
"""
suite = unittest.TestSuite()
More information about the Python-checkins
mailing list