(case_setup)
| 376 | |
| 377 | |
| 378 | def test_case_5(case_setup): |
| 379 | with case_setup.test_file("_debugger_case56.py") as writer: |
| 380 | breakpoint_id = writer.write_add_breakpoint(2, "Call2") |
| 381 | writer.write_make_initial_run() |
| 382 | |
| 383 | hit = writer.wait_for_breakpoint_hit() |
| 384 | thread_id = hit.thread_id |
| 385 | frame_id = hit.frame_id |
| 386 | |
| 387 | writer.write_get_frame(thread_id, frame_id) |
| 388 | |
| 389 | writer.write_remove_breakpoint(breakpoint_id) |
| 390 | |
| 391 | writer.write_step_return(thread_id) |
| 392 | |
| 393 | hit = writer.wait_for_breakpoint_hit("109") |
| 394 | thread_id = hit.thread_id |
| 395 | frame_id = hit.frame_id |
| 396 | line = hit.line |
| 397 | |
| 398 | assert line == 8, "Expecting it to go to line 8. Went to: %s" % line |
| 399 | |
| 400 | writer.write_step_in(thread_id) |
| 401 | |
| 402 | hit = writer.wait_for_breakpoint_hit("107") |
| 403 | thread_id = hit.thread_id |
| 404 | frame_id = hit.frame_id |
| 405 | line = hit.line |
| 406 | |
| 407 | # goes to line 4 in jython (function declaration line) |
| 408 | assert line in (4, 5), "Expecting it to go to line 4 or 5. Went to: %s" % line |
| 409 | |
| 410 | writer.write_run_thread(thread_id) |
| 411 | |
| 412 | assert 15 == writer._sequence, "Expected 15. Had: %s" % writer._sequence |
| 413 | |
| 414 | writer.finished_ok = True |
| 415 | |
| 416 | |
| 417 | def test_case_6(case_setup): |
nothing calls this directly
no test coverage detected