summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/lib/tests/test_nanfunctions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_nanfunctions.py b/numpy/lib/tests/test_nanfunctions.py
index 006b81a78..7756f2d79 100644
--- a/numpy/lib/tests/test_nanfunctions.py
+++ b/numpy/lib/tests/test_nanfunctions.py
@@ -257,10 +257,8 @@ class TestNanFunctions_NumberTypes:
nanfunc_ids = [i.__name__ for i in nanfuncs]
@pytest.mark.parametrize("nanfunc,func", nanfuncs.items(), ids=nanfunc_ids)
+ @np.errstate(over="ignore")
def test_nanfunc(self, dtype, nanfunc, func):
- if nanfunc is np.nanprod and dtype == "e":
- pytest.xfail(reason="overflow encountered in reduce")
-
mat = self.mat.astype(dtype)
tgt = func(mat)
out = nanfunc(mat)