summaryrefslogtreecommitdiff
path: root/pytest.ini
blob: 29ec1d1a4fce6cca1654b97d7eb0da403802675a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[pytest]
addopts = -l
norecursedirs = doc tools numpy/linalg/lapack_lite numpy/core/code_generators
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS ALLOW_UNICODE ALLOW_BYTES
junit_family=xunit2

filterwarnings =
    error
# Filter out annoying import messages.
    ignore:Not importing directory
    ignore:numpy.dtype size changed
    ignore:numpy.ufunc size changed
    ignore::UserWarning:cpuinfo,
    ignore: divide by zero encountered in log
    ignore: invalid value encountered in log
# Matrix PendingDeprecationWarning.
    ignore:the matrix subclass is not
    ignore:Importing from numpy.matlib is
# pytest warning when using PYTHONOPTIMIZE
    ignore:assertions not in test modules or plugins:pytest.PytestConfigWarning
# TODO: remove below when array_api user warning is removed
    ignore:The numpy.array_api submodule is still experimental. See NEP 47.
# ignore matplotlib headless warning for pyplot
    ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning
# Ignore DeprecationWarnings from distutils
    ignore::DeprecationWarning:.*distutils
    ignore:\n\n  `numpy.distutils`:DeprecationWarning
# Ignore mypy >= 0.971 DeprecationWarnings
    ignore:path is deprecated\. Use files\(\) instead:DeprecationWarning:mypy