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: I3890dadba51bd1a112ac24bfb3a1e15afe96d3e1
This commit is contained in:
pawnesh.kumar 2016-10-26 13:17:13 +05:30
parent 57e74664d3
commit 97cb24ba01
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ whitelist_externals = bash
rm
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
passenv = TEMPEST_* OS_TEST_*