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

Jim Fulton jim at zope.com
Tue Mar 30 16:40:06 EST 2004


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

Modified Files:
	doctestunit.py 
Log Message:
Fixed some bugs in the debugger.


=== Zope3/src/zope/testing/doctestunit.py 1.9 => 1.10 ===
--- Zope3/src/zope/testing/doctestunit.py:1.9	Mon Mar 15 15:41:39 2004
+++ Zope3/src/zope/testing/doctestunit.py	Tue Mar 30 16:40:02 2004
@@ -231,7 +231,7 @@
         ])
     return testsrc
 
-def debug_src(src, pm=False):
+def debug_src(src, pm=False, globs=None):
     """Debug a single doctest test doc string
 
     The string is provided directly
@@ -242,7 +242,7 @@
         "%s%s" % (source, _expect(expect))
         for (source, expect, lineno) in examples
         ])
-    debug_script(src, pm)
+    debug_script(src, pm, globs)
 
 def debug_script(src, pm=False, globs=None):
     "Debug a test script"
@@ -277,4 +277,4 @@
     """
     module = _normalizeModule(module)
     testsrc = testsource(module, name)
-    debug_src(testsource, pm, module.__dict__)
+    debug_script(testsrc, pm, module.__dict__)




More information about the Zodb-checkins mailing list