Skip to content

Commit

Permalink
fix: Use jax.errors API as jax._src removed from public namespace (
Browse files Browse the repository at this point in the history
…#2034)

* Use jax.errors API over jax._src.errors as jax._src is removed from the jax
   public namespace in jax v0.3.18.
   - c.f. https://github.com/google/jax/releases/tag/jax-v0.3.18
  • Loading branch information
matthewfeickert authored Sep 26, 2022
1 parent 2d791e8 commit d088b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def example_op(x):
with pytest.raises(
(
ValueError,
jax._src.errors.TracerArrayConversionError,
jax.errors.TracerArrayConversionError,
jax.errors.ConcretizationTypeError,
)
):
Expand All @@ -73,7 +73,7 @@ def example_op2(x):
z = pyhf.tensorlib.sum(y)
return z

with pytest.raises(jax._src.errors.TracerArrayConversionError):
with pytest.raises(jax.errors.TracerArrayConversionError):
jax.jacrev(example_op2)(pyhf.tensorlib.astensor([2.0, 3.0]))


Expand Down

0 comments on commit d088b17

Please sign in to comment.