diff --git a/tests/pytest.ini b/tests/pytest.ini index 401cbe0ad..cd6da3af6 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -5,3 +5,10 @@ addopts = -rs # capture only Python print and C++ py::print, but not C output (low-level Python errors) --capture=sys +filterwarnings = + # make warnings into errors but ignore certain third-party extension issues + error + # importing scipy submodules on some version of Python + ignore::ImportWarning + # bogus numpy ABI warning (see numpy/#432) + ignore:.*numpy.dtype size changed.*:RuntimeWarning