mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
revert change that breaks test_doctest (which I forgot to run - sorry)
This commit is contained in:
parent
3e9ac99fe7
commit
d3a1bdf4d9
2 changed files with 0 additions and 13 deletions
|
@ -320,19 +320,8 @@ class _OutputRedirectingPdb(pdb.Pdb):
|
|||
"""
|
||||
def __init__(self, out):
|
||||
self.__out = out
|
||||
self.__debugger_used = False
|
||||
pdb.Pdb.__init__(self, stdout=out)
|
||||
|
||||
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):
|
||||
# Redirect stdout to the given stream.
|
||||
save_stdout = sys.stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue