Skip to content

Commit 761ca16

Browse files
authored
test(cuda.core): isolate build-dir tests from coverage mode (#3354)
Signed-off-by: Rui Luo <ruluo@nvidia.com>
1 parent 5c3520d commit 761ca16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎cuda_core/tests/test_build_hooks.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ class TestGeneratedSourceDirIsKeyed:
423423

424424
@pytest.mark.agent_authored(model="glm-5.2")
425425
def test_majors_use_different_dirs(self, monkeypatch):
426+
monkeypatch.setattr(build_hooks, "COMPILE_FOR_COVERAGE", False)
426427
dir_12 = _capture_cythonize_build_dir(monkeypatch, "12")
427428
dir_13 = _capture_cythonize_build_dir(monkeypatch, "13")
428429

@@ -433,6 +434,7 @@ def test_majors_use_different_dirs(self, monkeypatch):
433434

434435
@pytest.mark.agent_authored(model="glm-5.2")
435436
def test_dir_is_anchored_not_relative_to_cwd(self, monkeypatch):
437+
monkeypatch.setattr(build_hooks, "COMPILE_FOR_COVERAGE", False)
436438
# Anchored to build_hooks.py, so it must agree with the stamp
437439
# regardless of where the build was invoked from.
438440
build_dir = _capture_cythonize_build_dir(monkeypatch, "13")

0 commit comments

Comments
 (0)