Skip to content

Commit a8d15b7

Browse files
committed
tests: Skip MPI test if test_dse not visible
1 parent 21c3766 commit a8d15b7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_mpi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
from devito.tools import Bunch
2222

2323
from examples.seismic.acoustic import acoustic_setup
24-
from tests.test_dse import TestTTI
24+
try:
25+
from tests.test_dse import TestTTI
26+
except ImportError:
27+
TestTTI = None
2528

2629

2730
class TestDistributor:
@@ -2982,6 +2985,7 @@ def test_issue_2448_backward(self, mode):
29822985

29832986
class TestTTIOp:
29842987

2988+
@pytest.mark.skipif(TestTTI is None, reason="Requires installing the tests")
29852989
@pytest.mark.parallel(mode=1)
29862990
def test_halo_structure(self, mode):
29872991
solver = TestTTI().tti_operator(opt='advanced', space_order=8)

0 commit comments

Comments
 (0)