Files
numpy/pytest.ini
T
Charles Harris d35eca3bee MAINT: Fix emscripten.
- Update pytest.ini to be more precise about matrixlib warnings
- Do not use pytest caches, they cause permission errors
2026-06-17 14:56:09 -06:00

28 lines
1.3 KiB
INI

[pytest]
addopts = -l -ra --strict-markers --strict-config
norecursedirs = doc tools numpy/linalg/lapack_lite numpy/_core/code_generators numpy/_core/src/common/pythoncapi-compat
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:PendingDeprecationWarning
ignore:Importing from numpy.matlib is:PendingDeprecationWarning
# pytest warning when using PYTHONOPTIMIZE
ignore:assertions not in test modules or plugins:pytest.PytestConfigWarning
# 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 DeprecationWarning from typing.mypy_plugin
ignore:`numpy.typing.mypy_plugin` is deprecated:DeprecationWarning
# Ignore DeprecationWarning from struct module
# see https://github.com/numpy/numpy/issues/28926
ignore:Due to \'_pack_\', the