Skip to content

Commit

Permalink
Merge pull request #171 from danielward27/equinox_errors
Browse files Browse the repository at this point in the history
Test for updated equinox errors
  • Loading branch information
danielward27 authored Aug 29, 2024
2 parents 81d699c + 60ab083 commit 157f867
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license = { file = "LICENSE" }
name = "flowjax"
readme = "README.md"
requires-python = ">=3.10"
version = "13.1.0"
version = "13.1.1"

[project.urls]
repository = "https://github.com/danielward27/flowjax"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_bijections/test_bijection_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jax
import jax.numpy as jnp
import pytest
from equinox import EquinoxRuntimeError

from flowjax.bijections import Affine, Partial, Permute

Expand Down Expand Up @@ -30,5 +30,5 @@ def test_partial(idx, expected):


def test_Permute_argcheck():
with pytest.raises(jax.lib.xla_extension.XlaRuntimeError):
with pytest.raises(EquinoxRuntimeError):
Permute(jnp.array([0, 0]))
2 changes: 1 addition & 1 deletion tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def test_BijectionReparam():

with pytest.raises(jax.lib.xla_extension.XlaRuntimeError, match="Exp"):
with pytest.raises(eqx.EquinoxRuntimeError, match="Exp"):
BijectionReparam(-jnp.ones(3), Exp())

param = jnp.array([jnp.inf, 1, 2])
Expand Down

0 comments on commit 157f867

Please sign in to comment.