Skip to content

Commit

Permalink
Fix failure
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Jan 7, 2025
1 parent 1b89e4d commit 82fab45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ def test_is_lazy_array_unknown(array, monkeypatch):
"is_jax_array",
lambda x: False,
)
monkeypatch.setattr( # Needed for JAX < 0.4.32
array_api_compat.common._helpers,
"array_namespace",
lambda x: xp,
)

assert not is_lazy_array(x) # Eager JAX
assert jax.jit(is_lazy_array)(x) # Jitted (lazy) JAX
Expand Down

0 comments on commit 82fab45

Please sign in to comment.