Skip to content

Commit

Permalink
tests: Skip MPI test if test_dse not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini authored and mloubout committed Jan 14, 2025
1 parent 5bbd827 commit 4bf6523
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
from devito.tools import Bunch

from examples.seismic.acoustic import acoustic_setup
from tests.test_dse import TestTTI
try:
from tests.test_dse import TestTTI
except ImportError:
TestTTI = None


class TestDistributor:
Expand Down Expand Up @@ -2982,6 +2985,7 @@ def test_issue_2448_backward(self, mode):

class TestTTIOp:

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

0 comments on commit 4bf6523

Please sign in to comment.