Skip to content

Commit 32d0dc8

Browse files
committed
also skip on Windows d/t failure
1 parent d3e89ff commit 32d0dc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neo/test/iotest/test_get_io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22
from tempfile import TemporaryDirectory
3+
import platform
34
from neo.io import get_io, list_candidate_ios, NixIO
45
import pytest
56
try:
@@ -34,7 +35,7 @@ def test_list_candidate_ios_filename_stub():
3435

3536
assert NixIO in ios
3637

37-
@pytest.mark.skipif(not HAVE_NIX, reason='Need nixio in order to return NixIO class')
38+
@pytest.mark.skipif(not HAVE_NIX or platform.system()=='Windows', reason='Need nixio in order to return NixIO class')
3839
def test_get_io_non_existant_file_writable_io():
3940
# use nixio for testing with writable io
4041
non_existant_file = Path("non_existant_file.nix")
@@ -44,4 +45,4 @@ def test_get_io_non_existant_file_writable_io():
4445
assert isinstance(io, NixIO)
4546

4647
# cleanup
47-
non_existant_file.unlink(missing_ok=True)
48+
non_existant_file.unlink(missing_ok=True) # cleanup will fail on Windows so need to skip

0 commit comments

Comments
 (0)