Skip to content

Commit 27ff126

Browse files
committed
fix.
1 parent 4f947e9 commit 27ff126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_collect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import sys
12
import textwrap
23
from contextlib import ExitStack as does_not_raise # noqa: N813
34
from pathlib import Path
45

56
import pytest
67
from _pytask.collect import pytask_collect_node
7-
from _pytask.config import IS_FILE_SYSTEM_CASE_SENSITIVE
88
from _pytask.exceptions import NodeNotCollectedError
99
from _pytask.session import Session
1010
from pytask import main
@@ -141,7 +141,7 @@ def test_pytask_collect_node(session, path, node, expectation, expected):
141141

142142
@pytest.mark.unit
143143
@pytest.mark.skipif(
144-
IS_FILE_SYSTEM_CASE_SENSITIVE, reason="Only works on case-insensitive file systems."
144+
sys.platform != "win32", reason="Only works on case-insensitive file systems."
145145
)
146146
def test_pytask_collect_node_raises_error_if_path_is_not_correctly_cased(tmp_path):
147147
session = Session({"check_casing_of_paths": True}, None)

0 commit comments

Comments
 (0)