(tmp_path)
| 116 | |
| 117 | |
| 118 | def test_task_timeout(tmp_path): |
| 119 | task = tasks.AllOsTask("test_task", ["sleep", "5"], timeout=0.01) |
| 120 | runner = tasks.TaskRunner(tmp_dir=tmp_path) |
| 121 | runner.run(task) |
| 122 | |
| 123 | with open(pathlib.Path(runner.tmpdir) / runner.default_name) as fh: |
| 124 | assert "`['sleep', '5']` timed out after 0.01 seconds" in fh.read() |
| 125 | |
| 126 | |
| 127 | def test_task_popen_exception(tmp_path): |