Enable Python DeprecationWarning in test environments

Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by test cases.

Enable deprecation warnings in test environments via the
PYTHONWARNINGS environment variable.

Change-Id: I075a30d6052f49c6157f9842dfd1934ea1dcb583
This commit is contained in:
Henry Gessau 2016-08-09 20:14:11 -04:00
parent e1397252dd
commit c8ae5f2fbb
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ install_command =
pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'