Skip to content

Commit 6f22a9c

Browse files
refactor(xmipy): skip test_gwf_tdis if xmipy not installed (MODFLOW-ORG#1998)
1 parent 626c236 commit 6f22a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autotest/test_gwf_tdis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import flopy
44
import numpy as np
55
import pytest
6-
from xmipy import XmiWrapper
6+
from modflow_devtools.markers import requires_pkg
77

88

99
@pytest.fixture
@@ -26,9 +26,12 @@ def simple_sim(tmp_path):
2626
return sim
2727

2828

29+
@requires_pkg("xmipy")
2930
@pytest.mark.parametrize("tsmult", [1.0, 1.2])
3031
def test_tdis_tsmult(tsmult, simple_sim, targets):
3132
"""Check totim values to ensure they avoid accumulation errors."""
33+
from xmipy import XmiWrapper
34+
3235
sim = simple_sim
3336

3437
# Add TDIS package using time variables

0 commit comments

Comments
 (0)