MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_with_tab_in_output

Function test_with_tab_in_output

tests/debugpy/test_output.py:51–70  ·  view source on GitHub ↗
(pyfile, target, run)

Source from the content-addressed store, hash-verified

49
50
51def 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"])

Callers

nothing calls this directly

Calls 6

set_breakpointsMethod · 0.80
wait_for_stopMethod · 0.80
request_continueMethod · 0.80
outputMethod · 0.80
runFunction · 0.70
targetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…