Skip to content

Commit f26048f

Browse files
committed
Skip fsspec local tests on Windows
1 parent af5ce09 commit f26048f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

upath/tests/test_core.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
from upath.tests.cases import BaseTests
99

1010

11-
@pytest.mark.skipif(sys.platform != "linux",
12-
reason="only run test if Linux Machine")
11+
@pytest.mark.skipif(
12+
sys.platform.startswith("win"),
13+
reason="don't run test on Windows",
14+
)
1315
def test_posix_path(local_testdir):
1416
assert isinstance(UPath(local_testdir), pathlib.PosixPath)
1517

@@ -86,6 +88,10 @@ def test_new_method(local_testdir):
8688
assert isinstance(path, pathlib.Path)
8789

8890

91+
@pytest.mark.skipif(
92+
sys.platform.startswith("win"),
93+
reason="don't run test on Windows",
94+
) # need to fix windows tests here
8995
class TestFSSpecLocal(BaseTests):
9096
@pytest.fixture(autouse=True)
9197
def path(self, local_testdir):

0 commit comments

Comments
 (0)