Commit 07fcc0e
test(conftest): make jax import lazy so tests collect without JAX
JAX is now an optional dep gated on python_version >= '3.11'. The
eager `import jax` at the top of test_autoarray/conftest.py was
breaking pytest collection on 3.9 and 3.10 (no JAX installed).
Wrap in try/except, gate jnp warmup on _JAX_AVAILABLE.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent baa52dd commit 07fcc0e
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | | - | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
0 commit comments