]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Sun, 29 Aug 2004 00:38:17 +0000 (00:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 29 Aug 2004 00:38:17 +0000 (00:38 +0000)
Lib/doctest.py
Lib/test/test_doctest.py

index 67907a52c4f99921852f613483d155927bb2cc18..988707b467985633d29f99845b93d5d0c25f6a28 100644 (file)
@@ -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()
 
index 53798ab74965181973e232a1d79367c353e3c4c2..2b39e33e9c95e924765cce3066b6a91808ed994e 100644 (file)
@@ -1797,7 +1797,7 @@ def test_DocFileSuite():
        Here, we didn't need to use a tearDown function because we
        modified the test globals.  The test globals are
        automatically cleared for us after a test.
-       
+
        """
 
 def test_trailing_space_in_test():
@@ -1848,7 +1848,7 @@ def test_unittest_reportflags():
           NameError: name 'favorite_color' is not defined
       <BLANKLINE>
       <BLANKLINE>
-      
+
     We get only the first failure.
 
     If we give any reporting options when we set up the tests,