Skip to content

Commit

Permalink
Fix incorrect test skip (Linux vs posix)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Dec 6, 2023
1 parent 2196b87 commit 03d433b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_lazy_file_handling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform

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


@pytest.mark.skipif(os.name != "posix", reason="test requires use of /proc/self/")
@pytest.mark.skipif(
platform.system() != "Linux", reason="test requires /proc/self/ mechanism"
)
def test_open_file_usage_never_exceeds_1000(runner, monkeypatch, tmp_path):
schema_path = tmp_path / "schema.json"
schema_path.write_text("{}")
Expand Down

0 comments on commit 03d433b

Please sign in to comment.