Skip to content

Commit 4271cd4

Browse files
committed
Skip hdf5 tests if hdf5 isn't installed.
1 parent ef36eb1 commit 4271cd4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_io_hdf5.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
import healsparse
1212

1313

14+
if not healsparse.io_map_hdf5.use_hdf5:
15+
pytest.skip("Skipping hdf5 tests", allow_module_level=True)
16+
17+
1418
class Hdf5IoTestCase(unittest.TestCase):
1519
def test_hdf5_writeread(self):
1620
"""

0 commit comments

Comments
 (0)