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

Class TimeoutEnvironment

tests/arenas/test_scml.py:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115 def test_validation_rejects_decide_timeout(self):
116 class TimeoutEnvironment(MockEnvironment):
117 def execute(self, cmd: str, cwd: str | None = None, timeout: int | None = None):
118 if cmd.startswith("python - <<'PY'"):
119 raise subprocess.TimeoutExpired(cmd=cmd, timeout=timeout)
120 return super().execute(cmd, cwd=cwd, timeout=timeout)
121
122 arena = SCMLOneShotArena.__new__(SCMLOneShotArena)
123 arena.submission = "scml_agent.py"

Calls

no outgoing calls