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

Function test_unicode_dir

tests/debugpy/test_run.py:333–357  ·  view source on GitHub ↗
(tmpdir, run, target)

Source from the content-addressed store, hash-verified

331
332@pytest.mark.parametrize("run", [runners.all_launch[0]])
333def test_unicode_dir(tmpdir, run, target):
334 unicode_chars = "á"
335
336 directory = os.path.join(str(tmpdir), unicode_chars)
337 os.makedirs(directory)
338
339 code_to_debug = os.path.join(directory, "experiment.py")
340 with open(code_to_debug, "wb") as stream:
341 stream.write(
342 b"""
343import debuggee
344from debuggee import backchannel
345
346debuggee.setup()
347backchannel.send('ok')
348"""
349 )
350
351 with debug.Session() as session:
352 backchannel = session.open_backchannel()
353 with run(session, target(code_to_debug)):
354 pass
355
356 received = backchannel.receive()
357 assert received == "ok"

Callers

nothing calls this directly

Calls 6

open_backchannelMethod · 0.80
receiveMethod · 0.80
runFunction · 0.70
targetFunction · 0.70
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…