Skip to content

Commit 03d433b

Browse files
committed
Fix incorrect test skip (Linux vs posix)
1 parent 2196b87 commit 03d433b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_lazy_file_handling.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import platform
23

34
import pytest
45
from click.testing import CliRunner
@@ -12,7 +13,9 @@ def runner() -> CliRunner:
1213
return CliRunner(mix_stderr=False)
1314

1415

15-
@pytest.mark.skipif(os.name != "posix", reason="test requires use of /proc/self/")
16+
@pytest.mark.skipif(
17+
platform.system() != "Linux", reason="test requires /proc/self/ mechanism"
18+
)
1619
def test_open_file_usage_never_exceeds_1000(runner, monkeypatch, tmp_path):
1720
schema_path = tmp_path / "schema.json"
1821
schema_path.write_text("{}")

0 commit comments

Comments
 (0)