diff options
author | Henry Gessau <gessau@gmail.com> | 2016-08-09 19:03:33 -0400 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2016-08-17 16:06:38 +0000 |
commit | bca532b67492cdfca674aa48f4ae58fa1da37612 (patch) | |
tree | 4aa692c835f3514a3b3a067f870a106a535741e1 /tox.ini | |
parent | 70557dc564b4b3cca2cd716a29e5e9f9be95247f (diff) | |
download | python-neutronclient-bca532b67492cdfca674aa48f4ae58fa1da37612.tar.gz |
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.
Depends-On: Ibeabf474194b2d38273d76117a3a2f3bee5f7286
Change-Id: Iab8171ac0943c774be0d2117ac442f2e153b3c7f
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -9,6 +9,7 @@ setenv = VIRTUAL_ENV={envdir} LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=C + PYTHONWARNINGS=default::DeprecationWarning usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |