| 331 | |
| 332 | @pytest.mark.parametrize("run", [runners.all_launch[0]]) |
| 333 | def 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""" |
| 343 | import debuggee |
| 344 | from debuggee import backchannel |
| 345 | |
| 346 | debuggee.setup() |
| 347 | backchannel.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" |