diff options
author | Stephen Finucane <stephen@that.guru> | 2018-06-24 20:55:56 +0100 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2018-08-26 16:58:21 +1000 |
commit | 4cfe75f061f5c40e0d36e082127991c3896d5cdb (patch) | |
tree | c932b399e0c2a28eaec33b29d79b101de31b0f91 | |
parent | 67c76281c25efd88dfda1a86f4b277e8f1bfbb53 (diff) | |
download | patchwork-4cfe75f061f5c40e0d36e082127991c3896d5cdb.tar patchwork-4cfe75f061f5c40e0d36e082127991c3896d5cdb.tar.gz |
tox: Rework warning infrastructure
Python 3.5's xmlrpc spews lots of ResourceWarnings that go
away in 3.6, so silence them.
We also see some warnings from inside the import machinery,
which we also silence.
Signed-off-by: Stephen Finucane <stephen@that.guru>
[dja: make slightly more restrictive, reword commit message]
Signed-off-by: Daniel Axtens <dja@axtens.net>
-rw-r--r-- | tox.ini | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -16,12 +16,16 @@ setenv = DJANGO_SETTINGS_MODULE = patchwork.settings.dev PYTHONDONTWRITEBYTECODE = 1 DJANGO_LIVE_TEST_SERVER_ADDRESS = localhost:9000-9200 + py27: PYTHONWARNINGS = once + py{34,36}:PYTHONWARNINGS = once,ignore::ImportWarning:backports + py35:PYTHONWARNINGS = once,ignore::ResourceWarning:unittest.suite,ignore::ImportWarning:backports + passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS PW_TEST_DB_HOST PW_TEST_DB_PORT commands = - python -Wonce {toxinidir}/manage.py test --noinput '{posargs:patchwork}' + python {toxinidir}/manage.py test --noinput '{posargs:patchwork}' [testenv:bashate] deps = bashate>=0.5,<0.6 |