MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_case_3

Function test_case_3

tests_python/test_debugger.py:283–307  ·  view source on GitHub ↗
(case_setup)

Source from the content-addressed store, hash-verified

281
282@pytest.mark.skipif(IS_IRONPYTHON, reason="This test fails once in a while due to timing issues on IronPython, so, skipping it.")
283def 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
310def test_case_suspend_thread(case_setup):

Callers

nothing calls this directly

Calls 7

test_fileMethod · 0.80
write_add_breakpointMethod · 0.80
write_get_frameMethod · 0.80
write_run_threadMethod · 0.80

Tested by

no test coverage detected