Skip to content

Commit 5e3f097

Browse files
author
kshitij-maths
committed
fix: add conditional skip for parallel tests to prevent CI failure
1 parent 31ebcdc commit 5e3f097

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/test_parallel.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
from ezyrb import Database, POD, RBF
66
from ezyrb.parallel import ReducedOrderModel
77

8+
try:
9+
import pycompss
10+
from ezyrb.parallel import ReducedOrderModel
11+
HAS_PARALLEL = True
12+
except ImportError:
13+
HAS_PARALLEL = False
14+
15+
@unittest.skipUnless(HAS_PARALLEL, "PyCOMPSs not installed; skipping parallel tests")
16+
817
class TestParallelROM(unittest.TestCase):
918
def setUp(self):
1019
self.params = np.array([[1.0], [2.0], [3.0]])

0 commit comments

Comments
 (0)