(case_setup_dap)
| 2623 | |
| 2624 | @pytest.mark.skipif(IS_JYTHON, reason="Putting unicode on frame vars does not work on Jython.") |
| 2625 | def test_evaluate_unicode(case_setup_dap): |
| 2626 | with case_setup_dap.test_file("_debugger_case_local_variables.py") as writer: |
| 2627 | json_facade = JsonFacade(writer) |
| 2628 | |
| 2629 | json_facade.write_set_breakpoints(writer.get_line_index_with_content("Break 2 here")) |
| 2630 | json_facade.write_make_initial_run() |
| 2631 | |
| 2632 | json_hit = json_facade.wait_for_thread_stopped() |
| 2633 | json_hit = json_facade.get_stack_as_json_hit(json_hit.thread_id) |
| 2634 | |
| 2635 | evaluate_response = json_facade.evaluate("\u16a0", json_hit.frame_id) |
| 2636 | |
| 2637 | evaluate_response_body = evaluate_response.body.to_dict() |
| 2638 | |
| 2639 | assert evaluate_response_body == { |
| 2640 | "result": "'\u16a1'", |
| 2641 | "type": "str", |
| 2642 | "variablesReference": 0, |
| 2643 | "presentationHint": {"attributes": ["rawString"]}, |
| 2644 | } |
| 2645 | |
| 2646 | json_facade.write_continue() |
| 2647 | writer.finished_ok = True |
| 2648 | |
| 2649 | |
| 2650 | def test_evaluate_exec_unicode(case_setup_dap): |
nothing calls this directly
no test coverage detected