(pyfile, tmpdir, run, target)
| 54 | @pytest.mark.parametrize("run", runners.all) |
| 55 | @pytest.mark.parametrize("target", targets.all) |
| 56 | def test_log_dir_env(pyfile, tmpdir, run, target): |
| 57 | @pyfile |
| 58 | def code_to_debug(): |
| 59 | import debuggee |
| 60 | from debuggee import backchannel |
| 61 | |
| 62 | debuggee.setup() |
| 63 | assert backchannel.receive() == "proceed" |
| 64 | |
| 65 | with check_logs(tmpdir, run): |
| 66 | with debug.Session() as session: |
| 67 | session.log_dir = None |
| 68 | session.spawn_adapter.env["DEBUGPY_LOG_DIR"] = tmpdir.strpath |
| 69 | if run.request != "launch": |
| 70 | session.spawn_debuggee.env["DEBUGPY_LOG_DIR"] = tmpdir.strpath |
| 71 | |
| 72 | backchannel = session.open_backchannel() |
| 73 | with run(session, target(code_to_debug)): |
| 74 | pass |
| 75 | |
| 76 | backchannel.send("proceed") |
nothing calls this directly
no test coverage detected
searching dependent graphs…