MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / TimeoutEnvironment

Class TimeoutEnvironment

tests/arenas/test_cyborg.py:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"

Calls

no outgoing calls