$OpenBSD: patch-scipy_special_tests_test_basic_py,v 1.4 2019/04/20 21:35:01 daniel Exp $

Silence a warning that shows up on OpenBSD. Inspired by:
https://github.com/numpy/numpy/pull/5020

Index: scipy/special/tests/test_basic.py
--- scipy/special/tests/test_basic.py.orig
+++ scipy/special/tests/test_basic.py
@@ -3362,7 +3362,8 @@ def test_xlog1py():
             if x == 0 and not np.isnan(y):
                 return x
             else:
-                return x * np.log1p(y)
+                with np.errstate(invalid="ignore", divide="ignore"):
+                    return x * np.log1p(y)
 
     z1 = np.asarray([(0,0), (0, np.nan), (0, np.inf), (1.0, 2.0),
                      (1, 1e-30)], dtype=float)
