From 4cf7b2446ceaf4e764c13d73bc0fc135c7570cab Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 9 Nov 2026 09:15:42 -0800 Subject: [PATCH] Test generator, `problem_spec_dir()`: remove code that walks the path This code checks if the current path is a child of the problem spec repo. The generator lives in the track repo, which is generally not nested inside the problem spec repo. The prior logic checks the XDG cache path, which is what `configlet` uses. Contributors ought to be running `configlet sync` so the path used by the configlet ought to exist and should be reliable. As such, an additional check is not needed. --- bin/generate_tests | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/generate_tests b/bin/generate_tests index 3c1c2fa..6dbb93f 100755 --- a/bin/generate_tests +++ b/bin/generate_tests @@ -23,10 +23,6 @@ def problem_spec_dir() -> pathlib.Path: specs = pathlib.Path(cache_dir) / "exercism/configlet/problem-specifications" if specs.exists(): return specs - cur = pathlib.Path(os.getcwd()) - for i in cur.parents: - if i.name == "problem-specifications": - return i raise LookupError("Could not find problem specs")