| 125 | |
| 126 | def test_validation_rejects_decide_timeout(self): |
| 127 | class TimeoutEnvironment(MockEnvironment): |
| 128 | def execute(self, cmd: str, cwd: str | None = None, timeout: int | None = None): |
| 129 | if cmd.startswith("python - <<'PY'"): |
| 130 | raise subprocess.TimeoutExpired(cmd=cmd, timeout=timeout) |
| 131 | return super().execute(cmd, cwd=cwd, timeout=timeout) |
| 132 | |
| 133 | arena = CybORGArena.__new__(CybORGArena) |
| 134 | arena.submission = "cyborg_agent.py" |
no outgoing calls