Skip to content

Commit 3062fcb

Browse files
committed
skip when pyedflib is not installed
1 parent ba2dd11 commit 3062fcb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/spikeinterface/extractors/tests/test_neoextractors.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ class AlphaOmegaEventTest(EventCommonTestSuite, unittest.TestCase):
380380
]
381381

382382

383+
try:
384+
import pyedflib
385+
HAVE_PYEDF = True
386+
except:
387+
HAVE_PYEDF = False
388+
389+
@pytest.mark.skipif(not(HAVE_PYEDF), reason="pyedflib is not installed")
383390
class EDFRecordingTest(RecordingCommonTestSuite, unittest.TestCase):
384391
ExtractorClass = EDFRecordingExtractor
385392
downloads = ["edf"]

0 commit comments

Comments
 (0)