MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_bash_timeout

Function test_bash_timeout

tests/lib/tools/test_agent_toolset.py:599–602  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

597
598@pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash")
599async def test_bash_timeout(tmp_path: Path) -> None:
600 s = await BashSession.start(str(tmp_path))
601 with pytest.raises(TimeoutError):
602 await s.exec("sleep 5", timeout=0.2)
603
604
605@pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash")

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected