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

Method test_step_next_on_last_statement

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

Source from the content-addressed store, hash-verified

601 tracer.runcall(tfunc_main)
602
603 def test_step_next_on_last_statement(self):
604 for set_type in ('step', 'next'):
605 with self.subTest(set_type=set_type):
606 self.expect_set = [
607 ('line', 2, 'tfunc_main'), ('step', ),
608 ('line', 3, 'tfunc_main'), ('step', ),
609 ('call', 1, 'tfunc_first'), ('break', (__file__, 3)),
610 ('None', 1, 'tfunc_first'), ('continue', ),
611 ('line', 3, 'tfunc_first', ({1:1}, [])), (set_type, ),
612 ('line', 4, 'tfunc_first'), ('quit', ),
613 ]
614 with TracerRun(self) as tracer:
615 tracer.runcall(tfunc_main)
616
617 def test_stepinstr(self):
618 self.expect_set = [

Callers

nothing calls this directly

Calls 3

TracerRunClass · 0.85
subTestMethod · 0.45
runcallMethod · 0.45

Tested by

no test coverage detected