diff --git a/scipy/special/tests/test_mpmath.py b/scipy/special/tests/test_mpmath.py index 1ece9ff70ae6..eff02eeb53b2 100644 --- a/scipy/special/tests/test_mpmath.py +++ b/scipy/special/tests/test_mpmath.py @@ -117,6 +117,7 @@ def test_hyperu_around_0(): FuncData(sc.hyperu, dataset, (0, 1, 2), 3, rtol=1e-15, atol=5e-13).check() + # ------------------------------------------------------------------------------ # hyp2f1 # ------------------------------------------------------------------------------ @@ -237,6 +238,7 @@ def test_hyp2f1_real_random(): FuncData(sc.hyp2f1, dataset, (0, 1, 2, 3), 4, rtol=1e-9).check() + # ------------------------------------------------------------------------------ # erf (complex) # ------------------------------------------------------------------------------ @@ -1859,17 +1861,18 @@ def test_hurwitz_zeta(self): def test_riemann_zeta(self): assert_mpmath_equal( sc.zeta, - mpmath.zeta, + lambda x: mpmath.zeta(x) if x != 1 else mpmath.inf, [Arg(-100, 100)], nan_ok=False, - rtol=1e-13, + rtol=5e-13, ) def test_zetac(self): assert_mpmath_equal(sc.zetac, - lambda x: mpmath.zeta(x) - 1, + lambda x: (mpmath.zeta(x) - 1 + if x != 1 else mpmath.inf), [Arg(-100, 100)], - nan_ok=False, dps=45, rtol=1e-13) + nan_ok=False, dps=45, rtol=5e-13) def test_boxcox(self):