(case_setup)
| 281 | |
| 282 | @pytest.mark.skipif(IS_IRONPYTHON, reason="This test fails once in a while due to timing issues on IronPython, so, skipping it.") |
| 283 | def test_case_3(case_setup): |
| 284 | with case_setup.test_file("_debugger_case3.py") as writer: |
| 285 | writer.write_make_initial_run() |
| 286 | time.sleep(0.5) |
| 287 | breakpoint_id = writer.write_add_breakpoint(4, "") |
| 288 | |
| 289 | hit = writer.wait_for_breakpoint_hit() |
| 290 | thread_id = hit.thread_id |
| 291 | frame_id = hit.frame_id |
| 292 | |
| 293 | writer.write_get_frame(thread_id, frame_id) |
| 294 | |
| 295 | writer.write_run_thread(thread_id) |
| 296 | |
| 297 | hit = writer.wait_for_breakpoint_hit() |
| 298 | thread_id = hit.thread_id |
| 299 | frame_id = hit.frame_id |
| 300 | |
| 301 | writer.write_get_frame(thread_id, frame_id) |
| 302 | |
| 303 | writer.write_remove_breakpoint(breakpoint_id) |
| 304 | |
| 305 | writer.write_run_thread(thread_id) |
| 306 | |
| 307 | writer.finished_ok = True |
| 308 | |
| 309 | |
| 310 | def test_case_suspend_thread(case_setup): |
nothing calls this directly
no test coverage detected