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:
parent
e1397252dd
commit
c8ae5f2fbb
|
@ -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}'
|
||||
|
||||
|
|
Loading…
Reference in New Issue