Skip to content

Commit 7aa952d

Browse files
committed
check for h5py
1 parent 58ff933 commit 7aa952d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_slurmclusterexecutor.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
skip_mpi4py_test = importlib.util.find_spec("mpi4py") is None
1515

16+
try:
17+
from executorlib.task_scheduler.file.hdf import dump
18+
19+
skip_h5py_test = False
20+
except ImportError:
21+
skip_h5py_test = True
1622

1723
submission_template = """\
1824
#!/bin/bash
@@ -35,7 +41,7 @@ def mpi_funct(i):
3541

3642

3743
@unittest.skipIf(
38-
skip_slurm_test or skip_mpi4py_test,
44+
skip_slurm_test or skip_mpi4py_test or skip_h5py_test,
3945
"h5py or mpi4py or SLRUM are not installed, so the h5py, slurm and mpi4py tests are skipped.",
4046
)
4147
class TestCacheExecutorPysqa(unittest.TestCase):

0 commit comments

Comments
 (0)