diff --git a/tests/eko/kernels/test_ns.py b/tests/eko/kernels/test_ns.py index 7b3c16a3c..013fc5433 100644 --- a/tests/eko/kernels/test_ns.py +++ b/tests/eko/kernels/test_ns.py @@ -202,8 +202,9 @@ def test_ode_n3lo(): np.testing.assert_allclose(lhs, rhs) -def test_error(): - with pytest.raises(ValueError): +def test_error(monkeypatch): + monkeypatch.setattr("eko.beta.beta_qcd", lambda *_args: 1.0) + with pytest.raises(NotImplementedError, match="order is not implemented"): ns.dispatcher((5, 0), "iterate-exact", np.random.rand(3) + 0j, 0.2, 0.1, 3, 10) with pytest.raises(NotImplementedError): ad.gamma_ns((2, 0), 10202, 1, 3)