diff --git a/brainpy/_src/math/tests/test_ndarray.py b/brainpy/_src/math/tests/test_ndarray.py index a0912912..e9acff35 100644 --- a/brainpy/_src/math/tests/test_ndarray.py +++ b/brainpy/_src/math/tests/test_ndarray.py @@ -62,7 +62,7 @@ def _f(self, b): def test_tracing(self): print(self.f(1.)) - with self.assertRaises(RuntimeError): + with self.assertRaises(jax.errors.UnexpectedTracerError): print(self.f(bm.ones(10)))