Revert "test: _via_set_trace_frame"

This reverts commit 92b3ee6aa3.
This commit is contained in:
Daniel Hahler 2019-11-15 21:55:00 +01:00
parent 92b3ee6aa3
commit 905367982c
1 changed files with 3 additions and 5 deletions

View File

@ -199,10 +199,9 @@ class Bdb:
def stop_here(self, frame):
"Return True if frame is below the starting frame in the stack."
if (
self.stopframe is None
and getattr(self, "_via_set_trace_frame", frame) == frame
):
if (self.stopframe is None
and self.returnframes is None
and self.stoplineno == 0): # TEST: via set_step
return True
if self.skip and \
self.is_skipped_module(frame.f_globals.get('__name__')):
@ -328,7 +327,6 @@ class Bdb:
"""
if frame is None:
frame = sys._getframe().f_back
self._via_set_trace_frame = frame
self.reset()
while frame:
frame.f_trace = self.trace_dispatch