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

Method test_next_in_caller_frame

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

Source from the content-addressed store, hash-verified

661 tracer.runcall(tfunc_main)
662
663 def test_next_in_caller_frame(self):
664 # Check that set_next() in the caller frame causes the tracer
665 # to stop next in the caller frame.
666 self.expect_set = [
667 ('line', 2, 'tfunc_main'), ('step', ),
668 ('line', 3, 'tfunc_main'), ('step', ),
669 ('call', 1, 'tfunc_first'), ('up', ),
670 ('None', 3, 'tfunc_main'), ('next', ),
671 ('line', 4, 'tfunc_main'), ('quit', ),
672 ]
673 with TracerRun(self) as tracer:
674 tracer.runcall(tfunc_main)
675
676 def test_return(self):
677 self.expect_set = [

Callers

nothing calls this directly

Calls 2

TracerRunClass · 0.85
runcallMethod · 0.45

Tested by

no test coverage detected