(pyfile, target, run)
| 49 | |
| 50 | |
| 51 | def test_with_tab_in_output(pyfile, target, run): |
| 52 | @pyfile |
| 53 | def code_to_debug(): |
| 54 | import debuggee |
| 55 | |
| 56 | debuggee.setup() |
| 57 | a = "\t".join(("Hello", "World")) |
| 58 | print(a) |
| 59 | x = 4 # @wait_for_output |
| 60 | |
| 61 | with debug.Session() as session: |
| 62 | session.config["redirectOutput"] = True |
| 63 | |
| 64 | with run(session, target(code_to_debug)): |
| 65 | session.set_breakpoints(code_to_debug, all) |
| 66 | |
| 67 | session.wait_for_stop() |
| 68 | session.request_continue() |
| 69 | |
| 70 | assert session.output("stdout").startswith("Hello\tWorld") |
| 71 | |
| 72 | |
| 73 | @pytest.mark.parametrize("redirect_mode", ["internalConsole", "redirectOutput"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…