diff --git a/tests/test_ringbuf.py b/tests/test_ringbuf.py index e55a87b9..2c739568 100644 --- a/tests/test_ringbuf.py +++ b/tests/test_ringbuf.py @@ -1,10 +1,22 @@ import time +import platform import trio import pytest import tractor +# `tractor.ipc._ringbuf` is built on linux `eventfd(2)`; importing +# it pulls in `tractor.ipc._linux` whose module-level +# `ffi.dlopen(None)` raises on non-linux. Skip the whole module at +# COLLECTION before that crashing import runs (a `pytestmark` skip +# is too late — markers apply only after the import succeeds). +if platform.system() != 'Linux': + pytest.skip( + 'ringbuf (eventfd) IPC is linux-only', + allow_module_level=True, + ) + # XXX `cffi` dun build on py3.14 yet.. pytest.importorskip("cffi")