Skip to content

Commit 7f3e346

Browse files
committed
tests: skip rest of test on Windows
Signed-off-by: Henry Schreiner <[email protected]>
1 parent a99bc34 commit 7f3e346

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_custom_modules.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from __future__ import annotations
22

3+
import sys
34
from pathlib import Path
45

6+
import pytest
7+
58
DIR = Path(__file__).parent
69
PROJECT_DIR = DIR / "packages" / "custom_cmake"
710

@@ -10,6 +13,11 @@ def test_ep(isolated):
1013
isolated.install("hatchling", "scikit-build-core[pyproject]")
1114
isolated.install(PROJECT_DIR / "extern", isolated=False)
1215
isolated.install(PROJECT_DIR, "-v", isolated=False)
16+
17+
if sys.platform.startswith("win"):
18+
# TODO: maybe figure out how to make this work on windows?
19+
pytest.skip("Can't run script on Windows")
20+
1321
script = isolated.run("script1", capture=True).strip()
1422
pysys = isolated.execute("import sys; print(sys.executable)").strip()
1523
contents = Path(script).read_text()

0 commit comments

Comments
 (0)