(self)
| 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 = """ |
nothing calls this directly
no test coverage detected