Commit 0835e33
test(conftest): remove jax from conftest entirely (numpy-only rule)
Per the 'library unit tests stay numpy-only' rule, conftest must not
import jax at all — not even via try/except. Replace the eager
import + jax.config.update + jnp.sum-warmup with a find_spec-gated
collect_ignore_glob that skips test_jax_*.py files when jax isn't
installed. find_spec checks availability without importing.
This supersedes the prior try/except approach in 07fcc0e.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 07fcc0e commit 0835e33
1 file changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 1 | + | |
16 | 2 | | |
17 | 3 | | |
18 | 4 | | |
| |||
21 | 7 | | |
22 | 8 | | |
23 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
0 commit comments