Skip to content

Commit 442ccfa

Browse files
rjpowerclaude
andcommitted
fix: skip jax tests when jax is not installed
Add pytest.importorskip("jax") at module level in both test_jax_init.py and test_jax_init_integration.py so CI environments without jax skip these tests instead of failing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fa42615 commit 442ccfa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/iris/tests/test_jax_init.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import pytest
1010

11+
pytest.importorskip("jax")
12+
1113
from iris.actor.resolver import ResolveResult, ResolvedEndpoint
1214
from iris.cluster.client.job_info import JobInfo
1315
from iris.cluster.types import JobName

lib/iris/tests/test_jax_init_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
import pytest
2727

28+
pytest.importorskip("jax")
29+
2830
from iris.actor.resolver import ResolveResult, ResolvedEndpoint
2931
from iris.cluster.client.job_info import JobInfo
3032
from iris.cluster.types import JobName

0 commit comments

Comments
 (0)