diff options
author | Stephen Finucane <stephen@that.guru> | 2017-12-22 18:50:53 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-29 13:02:32 +0000 |
commit | 9a3ebaaff5a24ed9f9ae9481acc0dbfd46281096 (patch) | |
tree | dbf06f609c772470366a07d6da8af1de5a133508 | |
parent | 7c0723fd46825ea44a98ae22ac45d08ca0ddd88b (diff) | |
download | sphinx-git-9a3ebaaff5a24ed9f9ae9481acc0dbfd46281096.tar.gz |
Resolve warning filter issues
There's an issue with 'pkgutils' and namespace packages. This has been
reported against setuptools [1], but until this is resolved, we simply
need to live with it. Ensure said warnings are filtered from tox too and
remove some unnecessary ones.
[1] https://github.com/pypa/setuptools/issues/1111
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r-- | tests/conftest.py | 2 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 336484bcc..0d6b39681 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -40,9 +40,7 @@ def _filter_warnings(): ignore(category=DeprecationWarning, module='site') # virtualenv ignore(category=PendingDeprecationWarning, module=r'_pytest\..*') - ignore(category=ImportWarning, module='backports') ignore(category=ImportWarning, module='pkgutil') - ignore(category=ImportWarning, module='pytest_cov') def _initialize_test_directory(session): @@ -20,6 +20,7 @@ deps = du13: docutils==0.13.1 du14: docutils==0.14 setenv = + PYTHONWARNINGS = all,ignore::ImportWarning:pkgutil SPHINX_TEST_TEMPDIR = {envdir}/testbuild commands= pytest -Wall --durations 25 {posargs} |