(tmp_path: Path)
| 471 | |
| 472 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |
| 473 | async def test_bash_timeout(tmp_path: Path) -> None: |
| 474 | s = await BashSession.start(str(tmp_path)) |
| 475 | with pytest.raises(TimeoutError): |
| 476 | await s.exec("sleep 5", timeout=0.2) |
| 477 | |
| 478 | |
| 479 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |