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

Method test_bp_after_last_statement

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

Source from the content-addressed store, hash-verified

790 self.assertRaises(BdbError, tracer.runcall, tfunc_import)
791
792 def test_bp_after_last_statement(self):
793 code = """
794 def main():
795 lno = 3
796 """
797 modules = { TEST_MODULE: code }
798 with create_modules(modules):
799 self.expect_set = [
800 ('line', 2, 'tfunc_import'), ('break', (TEST_MODULE_FNAME, 4))
801 ]
802 with TracerRun(self) as tracer:
803 self.assertRaises(BdbError, tracer.runcall, tfunc_import)
804
805 def test_temporary_bp(self):
806 code = """

Callers

nothing calls this directly

Calls 3

TracerRunClass · 0.85
create_modulesFunction · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected