(args, **kwargs)
| 451 | runs: list[_StartedRun] = [] |
| 452 | |
| 453 | def fake_popen(args, **kwargs): |
| 454 | if args != RUN_ARGV: |
| 455 | return real_popen(args, **kwargs) |
| 456 | runs.append(_StartedRun(args, kwargs, returncode, interrupts)) |
| 457 | return runs[-1] |
| 458 | |
| 459 | monkeypatch.setattr(subprocess, "Popen", fake_popen) |
| 460 | return runs |
nothing calls this directly
no test coverage detected