[Zope3-checkins] CVS: Zope3/src/zope/testing - doctestunit.py:1.8

Sidnei da Silva sidnei at x3ng.com.br
Tue Feb 3 16:53:33 EST 2004


Update of /cvs-repository/Zope3/src/zope/testing
In directory cvs.zope.org:/tmp/cvs-serv23407/src/zope/testing

Modified Files:
	doctestunit.py 
Log Message:
Death to whitespace


=== Zope3/src/zope/testing/doctestunit.py 1.7 => 1.8 ===
--- Zope3/src/zope/testing/doctestunit.py:1.7	Tue Jan  6 14:50:43 2004
+++ Zope3/src/zope/testing/doctestunit.py	Tue Feb  3 16:53:33 2004
@@ -14,7 +14,7 @@
 """Extension to use doctest tests as unit tests
 
 This module provides a DocTestSuite contructor for converting doctest
-tests to unit tests. 
+tests to unit tests.
 
 $Id$
 """
@@ -121,7 +121,7 @@
         suite.addTest(DocTestTestCase(
             tester, name, doc, filename, lineno,
             setUp, tearDown))
-                      
+
 
     return suite
 
@@ -131,7 +131,7 @@
         # Test the calling module
         module = sys._getframe(2).f_globals['__name__']
         module = sys.modules[module]
-        
+
     elif isinstance(module, (str, unicode)):
         module = __import__(module, globals(), locals(), ["*"])
 
@@ -141,7 +141,7 @@
     doc = getattr(object, '__doc__', '')
     if doc and doc.find('>>>') >= 0:
         tests.append((prefix+name, doc, filename, lineno))
-    
+
 
 def _findTests(module, prefix=None):
     if prefix is None:
@@ -182,7 +182,7 @@
             if not (hasattr(object, '__dict__')
                     and hasattr(object, '__bases__')):
                 continue # not a class
-            
+
             lineno = _find(object.__dict__.items(), module, dict, tests,
                            prefix+name+".")
 
@@ -190,10 +190,10 @@
                  lineno="%s (or above)" % (lineno-3))
 
     return minlineno
-        
-                      
-    
-    
+
+
+
+
 ####################################################################
 # doctest debugger
 
@@ -210,7 +210,7 @@
     Provide the module (or dotted name of the module) containing the
     test to be debugged and the name (within the module) of the object
     with the doc string with tests to be debugged.
-    
+
     """
     module = _normalizeModule(module)
     tests = _findTests(module, "")
@@ -232,7 +232,7 @@
     Provide the module (or dotted name of the module) containing the
     test to be debugged and the name (within the module) of the object
     with the doc string with tests to be debugged.
-    
+
     """
     module = _normalizeModule(module)
     testsrc = testsource(module, name)




More information about the Zope3-Checkins mailing list