From 87303809b80b49944b2cd87dec5b573b93f95d4c Mon Sep 17 00:00:00 2001 From: Cowork Supervisor Date: Sun, 12 Jul 2026 13:05:04 -0400 Subject: [PATCH] test: dep-check probe command must exist on Windows too python3 is not a command on a stock Windows install; caught by the new windows-latest CI job. Probe 'python' there and accept warn (found on augmented PATH) as proof of resolution. Co-Authored-By: Claude Fable 5 --- tests/test_core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index b07db51..3705811 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -227,8 +227,11 @@ def test_diagnostics_redacts_token_args(): # --------------------------------------------------------------------------- # # 6. Dependency / PATH checking # --------------------------------------------------------------------------- # -def test_dep_check_finds_python3(): - assert c.check_dependency({"command": "python3"})["status"] == "ok" +def test_dep_check_finds_python(): + # "python3" does not exist on a stock Windows install; "warn" (found only + # on an augmented PATH) still proves resolution works on a real machine. + cmd = "python" if os.name == "nt" else "python3" + assert c.check_dependency({"command": cmd})["status"] in ("ok", "warn") def test_dep_check_flags_missing():