(sandbox: Sandbox, code: str)
| 87 | @pytest.fixture |
| 88 | def run_python() -> Callable[[Sandbox, str], tuple[int, str, str]]: |
| 89 | def _run(sandbox: Sandbox, code: str) -> tuple[int, str, str]: |
| 90 | result = sandbox.exec(["python", "-c", code], timeout_seconds=20) |
| 91 | return result.exit_code, result.stdout, result.stderr |
| 92 | |
| 93 | return _run |