(case_setup)
| 2475 | |
| 2476 | |
| 2477 | def test_list_threads(case_setup): |
| 2478 | with case_setup.test_file("_debugger_case_local_variables.py") as writer: |
| 2479 | writer.write_add_breakpoint(writer.get_line_index_with_content("Break here"), "Call") |
| 2480 | writer.write_make_initial_run() |
| 2481 | |
| 2482 | hit = writer.wait_for_breakpoint_hit() |
| 2483 | thread_id = hit.thread_id |
| 2484 | frame_id = hit.frame_id |
| 2485 | |
| 2486 | seq = writer.write_list_threads() |
| 2487 | msg = writer.wait_for_list_threads(seq) |
| 2488 | assert msg.thread["name"] == "MainThread" |
| 2489 | assert msg.thread["id"].startswith("pid") |
| 2490 | writer.write_run_thread(thread_id) |
| 2491 | writer.finished_ok = True |
| 2492 | |
| 2493 | |
| 2494 | def test_case_print(case_setup): |
nothing calls this directly
no test coverage detected