We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3888e9c commit d928071Copy full SHA for d928071
1 file changed
tests/test_lexcube_viz.py
@@ -6,7 +6,13 @@
6
import pytest
7
import xarray as xr
8
9
-pytest.importorskip("lexcube", reason="lexcube is required for these visualization tests")
+try:
10
+ import lexcube # noqa: F401
11
+except Exception as exc: # pragma: no cover - environment-dependent optional dependency
12
+ pytest.skip(
13
+ f"lexcube is required for these visualization tests (import failed: {exc})",
14
+ allow_module_level=True,
15
+ )
16
17
from cubedynamics.viz.lexcube_viz import show_cube_lexcube
18
0 commit comments