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: Ia4a90a76dced55f1477010a6b918d8dbb7b82093
This commit is contained in:
parent
64bba9e99e
commit
f2321aba7c
1
tox.ini
1
tox.ini
@ -9,6 +9,7 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
OS_TEST_PATH=./karbor/tests/unit
|
||||
PYTHONWARNINGS=default::DeprecationWarning
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user