mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-11 14:50:13 +00:00
19 lines
639 B
Diff
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
|