File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
22from tempfile import TemporaryDirectory
3+ import platform
34from neo .io import get_io , list_candidate_ios , NixIO
45import pytest
56try :
@@ -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' )
3839def 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
You can’t perform that action at this time.
0 commit comments