Skip to content

Commit 22013ee

Browse files
committed
test: try raising more complex errors
1 parent e5ee401 commit 22013ee

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/test_integ.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,8 @@ def test_func(x): return x**-2
183183
test_integral, true_result, decimal=test_decimal, verbose=True,
184184
err_msg="x^(-2) integral failed across interval [1, inf].")
185185

186-
if is_jax_galsim():
187-
assert np.isnan(galsim.integ.int1d(test_func, 0., 1., test_rel_err, test_abs_err))
188-
else:
189-
with assert_raises(galsim.GalSimError):
190-
galsim.integ.int1d(test_func, 0., 1., test_rel_err, test_abs_err)
186+
with assert_raises((galsim.GalSimError, equinox.EquinoxRuntimeError)):
187+
galsim.integ.int1d(test_func, 0., 1., test_rel_err, test_abs_err)
191188

192189

193190
@timer

0 commit comments

Comments
 (0)