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

Method test_bp_ignore_count

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

Source from the content-addressed store, hash-verified

893 tracer.runcall(tfunc_import)
894
895 def test_bp_ignore_count(self):
896 code = """
897 def func():
898 lno = 3
899
900 def main():
901 for i in range(2):
902 func()
903 """
904 modules = { TEST_MODULE: code }
905 with create_modules(modules):
906 self.expect_set = [
907 ('line', 2, 'tfunc_import'),
908 break_in_func('func', TEST_MODULE_FNAME),
909 ('None', 2, 'tfunc_import'), ('ignore', (1, )),
910 ('None', 2, 'tfunc_import'), ('continue', ),
911 ('line', 3, 'func', ({1:2}, [])), ('quit', ),
912 ]
913 with TracerRun(self) as tracer:
914 tracer.runcall(tfunc_import)
915
916 def test_ignore_count_on_disabled_bp(self):
917 code = """

Callers

nothing calls this directly

Calls 4

break_in_funcFunction · 0.85
TracerRunClass · 0.85
create_modulesFunction · 0.70
runcallMethod · 0.45

Tested by

no test coverage detected