From 1006cad1195462ff9a37b67560917dade5437c88 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sat, 5 Sep 2026 17:28:51 -0700 Subject: [PATCH] test: escape literal filename in benchmark timeout assertion --- .../strategies/e2e_benchmark/test_benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rust-python-harness/strategies/e2e_benchmark/test_benchmark.py b/tests/rust-python-harness/strategies/e2e_benchmark/test_benchmark.py index e62ceaefd95..84a3b0b541f 100644 --- a/tests/rust-python-harness/strategies/e2e_benchmark/test_benchmark.py +++ b/tests/rust-python-harness/strategies/e2e_benchmark/test_benchmark.py @@ -124,7 +124,7 @@ def test_worker_deadline_terminates_and_reaps_the_process(tmp_path: Path, sample existing_children: Final = frozenset(process.pid for process in psutil.Process().children()) start: Final = monotonic() with (tmp_path / "worker.log").open("w+") as log: - with pytest.raises(TimeoutError, match="timed out waiting for missing.json"): + with pytest.raises(TimeoutError, match=r"timed out waiting for missing\.json"): with sdk_process(case_file, "python", REPO_ROOT, log) as child: tuple( wait_for_output(