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. Note: this copy from 1be35ff039d67c50866f2556ef847b048cbf3578 Change-Id: I7c6106149832d048d4d3bd2701c2c0db81bd87cb
This commit is contained in:
parent
a72d529fbe
commit
dbf61cdb4a
1
tox.ini
1
tox.ini
@ -8,6 +8,7 @@ envlist = py35,py27,compliance,pep8
|
||||
# random hash seed successfully.
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
PYTHONHASHSEED=0
|
||||
PYTHONWARNINGS=default::DeprecationWarning
|
||||
usedevelop = True
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user