summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorjiansong <jian.song@easystack.cn>2016-10-21 01:32:00 -0700
committerjian.song <jian.song@easystack.cn>2016-12-07 05:59:35 +0000
commit60d3617db2d5973c37dddf223c717b89253c424d (patch)
treea82c7041fcbf58592f3224e1958c9a5d552b5280 /tox.ini
parent77fd7014c0007c83652dd4fb1f9d3316a97b1ed3 (diff)
downloadtrove-60d3617db2d5973c37dddf223c717b89253c424d.tar.gz
Add 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. This copy from 1be35ff039d67c50866f2556ef847b048cbf3578 Change-Id: Ibe67b6b57494d731b49e76c590ac2681ae786c33
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index c9332fd5..f80d24df 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,6 +5,7 @@ skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
+ 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} \