MCPcopy Index your code
hub / github.com/python/cpython / __enter__

Method __enter__

Lib/test/test_bdb.py:427–431  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

425 self._original_tracer = None
426
427 def __enter__(self):
428 # test_pdb does not reset Breakpoint class attributes on exit :-(
429 reset_Breakpoint()
430 self._original_tracer = sys.gettrace()
431 return self.tracer
432
433 def __exit__(self, type_=None, value=None, traceback=None):
434 reset_Breakpoint()

Callers

nothing calls this directly

Calls 1

reset_BreakpointFunction · 0.85

Tested by

no test coverage detected