From 4e3d5a912aa29804b3d56efebe83577a535be850 Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Wed, 4 Nov 2026 10:44:22 +0800 Subject: [PATCH] test(cuda.core): isolate build-dir tests from coverage mode Signed-off-by: Rui Luo --- cuda_core/tests/test_build_hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cuda_core/tests/test_build_hooks.py b/cuda_core/tests/test_build_hooks.py index b4e3361db5e..9e0aa386628 100644 --- a/cuda_core/tests/test_build_hooks.py +++ b/cuda_core/tests/test_build_hooks.py @@ -423,6 +423,7 @@ class TestGeneratedSourceDirIsKeyed: @pytest.mark.agent_authored(model="glm-5.2") def test_majors_use_different_dirs(self, monkeypatch): + monkeypatch.setattr(build_hooks, "COMPILE_FOR_COVERAGE", False) dir_12 = _capture_cythonize_build_dir(monkeypatch, "12") dir_13 = _capture_cythonize_build_dir(monkeypatch, "13") @@ -433,6 +434,7 @@ def test_majors_use_different_dirs(self, monkeypatch): @pytest.mark.agent_authored(model="glm-5.2") def test_dir_is_anchored_not_relative_to_cwd(self, monkeypatch): + monkeypatch.setattr(build_hooks, "COMPILE_FOR_COVERAGE", False) # Anchored to build_hooks.py, so it must agree with the stamp # regardless of where the build was invoked from. build_dir = _capture_cythonize_build_dir(monkeypatch, "13")