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