Enable DeprecationWarning in test environments

Many deprecations are triggered early (on imports, for example).
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: Ib61fa1f8dfdf0aa4c0e23d7472058244d6b66c53
This commit is contained in:
avnish 2017-02-07 12:33:01 +05:30
parent 29a0e8954d
commit 88af8f9921
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =