| 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 = [ |