diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-03-31 09:12:11 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-03-31 11:10:23 -0600 |
commit | 6d7e70217ddd7e9f4bf0b1da94b1c4fd54b1e97b (patch) | |
tree | af8311fb397ad92e89c25be3a1eecec4de4632a8 /pytest.ini | |
parent | 6126789e4addb609b6c99e46a338f5b0bb6f9be3 (diff) | |
download | numpy-6d7e70217ddd7e9f4bf0b1da94b1c4fd54b1e97b.tar.gz |
MAINT: Update pytest.ini.
Include relevant suppression of various warnings.
Diffstat (limited to 'pytest.ini')
-rw-r--r-- | pytest.ini | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/pytest.ini b/pytest.ini index d3d7142d4..e901beb8c 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,9 +1,21 @@ [pytest] +addopts = -l -q norecursedirs = doc tools numpy/linalg/lapack_lite numpy/core/code_generators doctest_optionflags = NORMALIZE_WHITESPACE -testpaths = numpy +filterwarnings = + error +# Filter out annoying import messages. + ignore:Not importing directory + ignore:numpy.dtype size changed + ignore:numpy.ufunc size changed +# Ignore python2.7 -3 warnings + ignore:sys\.exc_clear\(\) not supported in 3\.x:DeprecationWarning + ignore:in 3\.x, __setslice__:DeprecationWarning + ignore:in 3\.x, __getslice__:DeprecationWarning + ignore:buffer\(\) not supported in 3\.x:DeprecationWarning + ignore:CObject type is not supported in 3\.x:DeprecationWarning + ignore:comparing unequal types not supported in 3\.x:DeprecationWarning + ignore:the commands module has been removed in Python 3\.0:DeprecationWarning env = PYTHONHASHSEED=0 - -# addopts = --doctest-modules --ignore=numpy/f2py/__main__.py --ignore=numpy/core/cversions.py --ignore=numpy/ma/core.py --ignore=numpy/ma/version.py --ignore=numpy/testing/utils.py --ignore=numpy/testing/decorators.py |