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

Method test_next_over_import

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

Source from the content-addressed store, hash-verified

635 tracer.runcall(tfunc_main)
636
637 def test_next_over_import(self):
638 code = """
639 def main():
640 lno = 3
641 """
642 modules = { TEST_MODULE: code }
643 with create_modules(modules):
644 self.expect_set = [
645 ('line', 2, 'tfunc_import'), ('next', ),
646 ('line', 3, 'tfunc_import'), ('quit', ),
647 ]
648 with TracerRun(self) as tracer:
649 tracer.runcall(tfunc_import)
650
651 def test_next_on_plain_statement(self):
652 # Check that set_next() is equivalent to set_step() on a plain

Callers

nothing calls this directly

Calls 3

TracerRunClass · 0.85
create_modulesFunction · 0.70
runcallMethod · 0.45

Tested by

no test coverage detected