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: Ifbb4b0bfac3aa146e205726d934d194fea06ff87
This commit is contained in:
Henry Gessau 2016-08-09 19:48:15 -04:00
parent 4a820b0b98
commit c654768ed3

View File

@ -8,6 +8,7 @@ skipsdist = True
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
PYTHONWARNINGS=default::DeprecationWarning
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
deps = -r{toxinidir}/requirements.txt