mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Give filterwarnings=all by ini file
Since pytest-3.9, precedence order of warning options had been changed. This moves ``-W all`` option into setup.cfg. In detail, see https://github.com/pytest-dev/pytest/issues/3946
This commit is contained in:
parent
44edaa1bb6
commit
c2590a45c1
@ -55,6 +55,7 @@ strict_optional = False
|
||||
|
||||
[tool:pytest]
|
||||
filterwarnings =
|
||||
all
|
||||
ignore::DeprecationWarning:docutils.io
|
||||
|
||||
[coverage:run]
|
||||
|
2
tox.ini
2
tox.ini
@ -24,7 +24,7 @@ setenv =
|
||||
PYTHONWARNINGS = all,ignore::ImportWarning:pkgutil,ignore::ImportWarning:importlib._bootstrap,ignore::ImportWarning:importlib._bootstrap_external,ignore::ImportWarning:pytest_cov.plugin,ignore::DeprecationWarning:site,ignore::DeprecationWarning:_pytest.assertion.rewrite,ignore::DeprecationWarning:_pytest.fixtures,ignore::DeprecationWarning:distutils
|
||||
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
||||
commands=
|
||||
pytest -Wall --durations 25 {posargs}
|
||||
pytest --durations 25 {posargs}
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user