(tmp_path: Path)
| 892 | |
| 893 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |
| 894 | async def test_bash_timeout(tmp_path: Path) -> None: |
| 895 | s = await BashSession.start(str(tmp_path)) |
| 896 | try: |
| 897 | with pytest.raises(TimeoutError): |
| 898 | await s.exec("sleep 5", timeout=0.2) |
| 899 | assert s.closed |
| 900 | finally: |
| 901 | await s.close() |
| 902 | |
| 903 | |
| 904 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |