Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d7e702

Browse files
committed
MAINT: Update pytest.ini.
Include relevant suppression of various warnings.
1 parent 6126789 commit 6d7e702

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

pytest.ini

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
[pytest]
2+
addopts = -l -q
23
norecursedirs = doc tools numpy/linalg/lapack_lite numpy/core/code_generators
34
doctest_optionflags = NORMALIZE_WHITESPACE
4-
testpaths = numpy
55

6+
filterwarnings =
7+
error
8+
# Filter out annoying import messages.
9+
ignore:Not importing directory
10+
ignore:numpy.dtype size changed
11+
ignore:numpy.ufunc size changed
12+
# Ignore python2.7 -3 warnings
13+
ignore:sys\.exc_clear\(\) not supported in 3\.x:DeprecationWarning
14+
ignore:in 3\.x, __setslice__:DeprecationWarning
15+
ignore:in 3\.x, __getslice__:DeprecationWarning
16+
ignore:buffer\(\) not supported in 3\.x:DeprecationWarning
17+
ignore:CObject type is not supported in 3\.x:DeprecationWarning
18+
ignore:comparing unequal types not supported in 3\.x:DeprecationWarning
19+
ignore:the commands module has been removed in Python 3\.0:DeprecationWarning
620
env =
721
PYTHONHASHSEED=0
8-
9-
# 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

0 commit comments

Comments
 (0)