From 4789e87fb0ab96ee99e1936a234642569797b050 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Wed, 7 Feb 2024 12:23:25 -0800 Subject: [PATCH] test_util: avoid overflow errors in NumPy 2.0 --- tests/lax_numpy_operators_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lax_numpy_operators_test.py b/tests/lax_numpy_operators_test.py index c1c04935f5fe..0722ba933441 100644 --- a/tests/lax_numpy_operators_test.py +++ b/tests/lax_numpy_operators_test.py @@ -453,6 +453,7 @@ def f(): @jax.numpy_rank_promotion('allow') # This test explicitly exercises implicit rank promotion. def testOp(self, op_name, rng_factory, shapes, dtypes, check_dtypes, tolerance, inexact, kwargs, alias): + raise ValueError() np_op = partial(getattr(np, op_name) if hasattr(np, op_name) else getattr(np, alias), **kwargs) jnp_op = partial(getattr(jnp, op_name), **kwargs) np_op = jtu.ignore_warning(category=RuntimeWarning,