(tmp_path: Path)
| 938 | |
| 939 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |
| 940 | async def test_bash_timeout(tmp_path: Path) -> None: |
| 941 | s = await BashSession.start(str(tmp_path)) |
| 942 | try: |
| 943 | with pytest.raises(TimeoutError): |
| 944 | await s.exec("sleep 5", timeout=0.2) |
| 945 | assert s.closed |
| 946 | finally: |
| 947 | await s.close() |
| 948 | |
| 949 | |
| 950 | @pytest.mark.skipif(sys.platform == "win32", reason="bash session requires /bin/bash") |