(tmp_path: Path)
| 301 | |
| 302 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |
| 303 | async def test_bash_timeout(tmp_path: Path) -> None: |
| 304 | s = await BashSession.start(str(tmp_path)) |
| 305 | with pytest.raises(TimeoutError): |
| 306 | await s.exec("sleep 5", timeout=0.2) |
| 307 | |
| 308 | |
| 309 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |