We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e803ef4 commit d3e89ffCopy full SHA for d3e89ff
neo/test/iotest/test_get_io.py
@@ -1,6 +1,12 @@
1
from pathlib import Path
2
from tempfile import TemporaryDirectory
3
from neo.io import get_io, list_candidate_ios, NixIO
4
+import pytest
5
+try:
6
+ import nixio
7
+ HAVE_NIX = True
8
+except:
9
+ HAVE_NIX = False
10
11
12
def test_list_candidate_ios_non_existant_file():
@@ -28,7 +34,7 @@ def test_list_candidate_ios_filename_stub():
28
34
29
35
assert NixIO in ios
30
36
31
-
37
+@pytest.mark.skipif(not HAVE_NIX, reason='Need nixio in order to return NixIO class')
32
38
def test_get_io_non_existant_file_writable_io():
33
39
# use nixio for testing with writable io
40
non_existant_file = Path("non_existant_file.nix")
0 commit comments