Skip to content

Commit 0cb3fb9

Browse files
committed
test: skip tests applicable only for UNIX platforms
1 parent 5fc9985 commit 0cb3fb9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ markers = [
6767
"slow: for tests with long runtime",
6868
"float80: for platforms with extended precision support (80-bit floats)",
6969
"float64: for platforms without extended precision support",
70+
"unix: for UNIX platforms",
7071
]
7172

7273
[tool.ruff.lint]

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import warnings
23

34
import numpy as np
@@ -39,6 +40,10 @@ def skip(marker, reason):
3940
else:
4041
skip("float80", "no support for extended precision")
4142

43+
# Exclude Windows from Linux-only tests
44+
if sys.platform == "win32":
45+
skip("unix", "cannot run on Windows")
46+
4247

4348
@pytest.fixture
4449
def testdir(pytestconfig):

tests/parse_timestamps/cli/test_stdio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import filecmp
22
import subprocess
33

4+
import pytest
45

6+
7+
@pytest.mark.unix
58
def test_parse_timestamps_stdout(path_timestamp_a1, tmp_path):
69
t1 = tmp_path / "intermediate1.ts"
710
t2 = tmp_path / "intermediate2.ts"

0 commit comments

Comments
 (0)