Zope Subversion Repository

  Zope

Zope: Zope3/trunk/src/zope/testing/doctest.py

Diff for /Zope3/trunk/src/zope/testing/doctest.py between version 28703 and 28705

version 28703, Fri Dec 24 16:01:20 2004 UTC version 28705, Wed Dec 29 19:57:56 2004 UTC
Line 343 
Line 343 
     """      """
     def __init__(self, out):      def __init__(self, out):
         self.__out = out          self.__out = out
           self.__debugger_used = False
         pdb.Pdb.__init__(self)          pdb.Pdb.__init__(self)
   
       def set_trace(self):
           self.__debugger_used = True
           pdb.Pdb.set_trace(self)
   
       def set_continue(self):
           # Calling set_continue unconditionally would break unit test coverage
           # reporting, as Bdb.set_continue calls sys.settrace(None).
           if self.__debugger_used:
               pdb.Pdb.set_continue(self)
   
     def trace_dispatch(self, *args):      def trace_dispatch(self, *args):
         # Redirect stdout to the given stream.          # Redirect stdout to the given stream.
         save_stdout = sys.stdout          save_stdout = sys.stdout


Generate output suitable for use with a patch program
Legend:
Removed from v.28703  
changed lines
  Added in v.28705

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help