summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/conftest.py')
-rw-r--r--packages/meshbay-node/tests/conftest.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/conftest.py b/packages/meshbay-node/tests/conftest.py
index 03dfb42..20724aa 100644
--- a/packages/meshbay-node/tests/conftest.py
+++ b/packages/meshbay-node/tests/conftest.py
@@ -1,9 +1,28 @@
"""Shared fixtures and helpers for node tests."""
+import sys
from pathlib import Path
+import pytest
from meshbay_node.roots import RootSet
+# ffmpeg / ffprobe run via asyncio.create_subprocess_exec, which needs the
+# ProactorEventLoop — but the repo-root conftest forces the SelectorEventLoop
+# on win32 so aiortc's ICE stack works there (see devel/windows-devel.md §5).
+# The two are mutually exclusive on one Windows asyncio loop; until the media
+# path gets a thread-based subprocess runner, these tests can't run on win32.
+needs_subprocess = pytest.mark.skipif(
+ sys.platform == "win32",
+ reason="ffmpeg subprocess needs ProactorEventLoop; win32 conftest forces "
+ "SelectorEventLoop for aiortc",
+)
+
+# Windows-only gaps still to close (see devel/windows-devel.md §5/§6).
+win32_todo = pytest.mark.skipif(
+ sys.platform == "win32",
+ reason="Windows behaviour not implemented yet (W3 / platform specifics)",
+)
+
def one_root(path: Path, *, name: str = "", kind: str = "generic") -> RootSet:
"""