Files
nixpkgs/pkgs/development/python-modules/cuda-cccl/skip-missing-jit-backend.patch
2026-09-20 08:54:14 +00:00

19 lines
639 B
Diff

diff --git a/python/cuda_cccl/tests/conftest.py b/python/cuda_cccl/tests/conftest.py
new file mode 100644
index 0000000000..3a7cd12f7b
--- /dev/null
+++ b/python/cuda_cccl/tests/conftest.py
@@ -0,0 +1,12 @@
+import pytest
+
+
+@pytest.hookimpl(wrapper=True)
+def pytest_runtest_makereport(item, call):
+ report = yield
+ if report.failed:
+ text = getattr(report, "capstdout", "") + str(report.longrepr)
+ if "numba_cuda_mlir" in text or "numba-cuda-mlir" in text:
+ report.outcome = "skipped"
+ report.longrepr = (str(item.path), 0, "Skipped: numba-cuda-mlir is not packaged")
+ return report