Skip to content

Commit 071b8b0

Browse files
committed
Skip flakey jax test
1 parent 37962fc commit 071b8b0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_third_party/test_against_jax.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313

1414

1515
def test_builds_roundtrip_with_ufunc():
16-
assert instantiate(builds(jnp.add, zen_partial=True))(1.0, 2.0) == jnp.array(3.0)
16+
try:
17+
assert instantiate(builds(jnp.add, zen_partial=True))(1.0, 2.0) == jnp.array(
18+
3.0
19+
)
20+
except FileNotFoundError:
21+
# Failed to open libtpu.so: libtpu.so: cannot open shared object file: No such file or directory
22+
pytest.skip("JAX is not available or configured correctly.")
1723

1824

1925
jax_objects = [

0 commit comments

Comments
 (0)