Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

tests: find_nvcc's test ignores a real CUDA toolkit on the host (#414)

Niko12210c8b8dc4d39e
diff --git a/tools/test_setup_choices.py b/tools/test_setup_choices.py
index b024dd4b4..3823ec890 100644
--- a/tools/test_setup_choices.py
+++ b/tools/test_setup_choices.py
@@ -128,7 +128,7 @@ class ExperimentalSm60(unittest.TestCase):
str(old): "Cuda compilation tools, release 12.9, V12.9.86"}
with mock.patch.object(setup, "WIN", False), mock.patch.object(setup.shutil, "which", lambda n: str(new)), \
mock.patch.dict(os.environ, {"CUDA_PATH": str(Path(d) / "12")}), \
- mock.patch.object(setup, "out", lambda cmd: versions[cmd[0]]):
+ mock.patch.object(setup, "out", lambda cmd: versions.get(cmd[0], "")): # #414
self.assertEqual(setup.find_nvcc(), (str(new), (13, 0)))
self.assertEqual(setup.find_nvcc(below=(13, 0)), (str(old), (12, 9)))