From aef4186de4acf84845fd1eaeb1b465fbd1d56855 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 28 Oct 2026 10:16:41 +0300 Subject: [PATCH] Tests: the parity-reach fixture names files the way the tool does narrow() and its graph key files by Posix path (`crates/a/src/used.rs`), so a fixture built from str(relative_to) on Windows produced backslashes and all seven tests errored in setUp. as_posix() in the fixture matches the tool. Co-Authored-By: Hermes Agent (Nous Research) --- tests/test_parity_reach.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parity_reach.py b/tests/test_parity_reach.py index 0e20f9174..c10fba135 100644 --- a/tests/test_parity_reach.py +++ b/tests/test_parity_reach.py @@ -60,7 +60,7 @@ class ReachTests(unittest.TestCase): pub fn main() { println!("{} {} {}", helper(), Thing.method(), Thing); } """, }) - self.dependencies = sorted(str(path.relative_to(self.root)) for path in self.root.rglob("*") if path.is_file()) + self.dependencies = sorted(path.relative_to(self.root).as_posix() for path in self.root.rglob("*") if path.is_file()) self.dependencies.remove("crates/a/examples/probe/main.rs") # parity.only_probes_run leaves it out def tearDown(self):