"""pytest plugin: report kernels stubbed out in Neuron basic mode as skipped, not failed. The Neuron backend exports every asc kernel factory, but those reachable only from DSpark/MTP, ZOS, CP or VL raise ``NotImplementedError(": not supported on Neuron (basic mode)")``. The upstream interface tests still parametrize over them; with ``-p nie_skip`` they show up as skips. """ import pytest @pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(item, call): outcome = yield report = outcome.get_result() if call.excinfo is not None and call.excinfo.errisinstance(NotImplementedError) and "basic mode" in str(call.excinfo.value): report.outcome = "skipped" report.longrepr = (str(item.path), item.location[1] or 0, f"Neuron basic mode: {call.excinfo.value}")