Enable DeprecationWarning in test environments

Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.

To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: Ie91cdc1920fd39c1f4dc6ffd101c70ca2b794758
This commit is contained in:
Henry Gessau 2016-08-09 19:13:57 -04:00
parent 83411b1f0f
commit 31298c3013
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ install_command =
# random hash seed successfully.
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = sh
commands =