[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py whitespace fixes

Benji York benji at zope.com
Sat Nov 19 10:56:55 EST 2005


Log message for revision 40248:
  whitespace fixes
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2005-11-19 15:56:16 UTC (rev 40247)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2005-11-19 15:56:54 UTC (rev 40248)
@@ -155,7 +155,7 @@
     options = get_options(args, defaults)
     if options.fail:
         return True
-    
+
     options.testrunner_defaults = defaults
     options.resume_layer = resume_layer
 
@@ -259,7 +259,7 @@
                    `tuple(options.gc)`)
         else:
             print "Cyclic garbage collection is disabled."
-            
+
         gc.set_threshold(*options.gc)
 
     old_flags = gc.get_debug()
@@ -285,7 +285,7 @@
         reporting_flags = doctest.REPORT_CDIFF
     if options.report_only_first_failure:
         reporting_flags |= doctest.REPORT_ONLY_FIRST_FAILURE
-        
+
     if reporting_flags:
         doctest.set_unittest_reportflags(reporting_flags)
     else:
@@ -401,7 +401,7 @@
 
     if options.gc_option:
         gc.set_debug(old_flags)
-        
+
     if options.gc:
         gc.set_threshold(*old_threshold)
 
@@ -420,7 +420,7 @@
         if options.verbose:
             track = TrackRefs()
         rc = sys.gettotalrefcount()
-        
+
     for i in repeat_range:
         if repeat > 1:
             print "Iteration", i+1
@@ -430,7 +430,7 @@
         if options.verbose == 1 and not options.progress:
             print '    ',
         result = TestResult(options, tests)
-        
+
         t = time.time()
 
         if options.post_mortem:
@@ -481,7 +481,7 @@
                 sys.stdout.getvalue()
             except AttributeError:
                 pass
-            
+
             prev = rc
             rc = sys.gettotalrefcount()
             if options.verbose:
@@ -640,7 +640,7 @@
             else:
                 w = room - 4
                 s = '... ' + s[-w:]
-                
+
         return ' ' + s[:room]
 
     def startTest(self, test):
@@ -928,7 +928,7 @@
                         break
                 else:
                     continue
-                    
+
                 try:
                     module = import_name(module_name)
                 except:
@@ -950,8 +950,8 @@
                     except:
                         suite = StartUpFailure(
                             options, module_name, sys.exc_info()[:2]+(None,))
-                    
 
+
                 yield suite
                 break
 
@@ -964,10 +964,10 @@
                 "Invalid test, %r,\nin test_suite from %s"
                 % (x, module_name)
                 )
-            
-    
 
 
+
+
 class StartUpFailure:
 
     def __init__(self, options, module, exc_info):
@@ -1634,8 +1634,8 @@
                          [(os.path.abspath(path), package)
                           for (path, package) in options.package_path or ()
                           ])
-    
 
+
     options.prefix = [(path + os.path.sep, package)
                       for (path, package) in options.test_path]
     if options.all:
@@ -1780,7 +1780,7 @@
                         ]),
                     )
                 )
-            
+
     if hasattr(sys, 'gettotalrefcount'):
         suites.append(
             doctest.DocFileSuite(
@@ -1798,7 +1798,7 @@
               (re.compile(r"^ +(int|type) +-?\d+ +-?\d+ *\n", re.M),
                ''),
               ]),
-            
+
             )
         )
     else:
@@ -1809,7 +1809,7 @@
             optionflags=doctest.ELLIPSIS+doctest.NORMALIZE_WHITESPACE,
             checker=checker,
             )
-        )            
+        )
 
     return unittest.TestSuite(suites)
 
@@ -1841,7 +1841,7 @@
     # real_pdb_set_trace.
     import zope.testing.testrunner
     from zope.testing import doctest
-    
+
     main()
 
 # Test the testrunner



More information about the Zope3-Checkins mailing list