summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorricolin <rico.lin@easystack.cn>2016-11-22 15:59:17 +0800
committerRico Lin <rico.lin.guanyu@gmail.com>2017-05-17 05:22:45 +0000
commitd9df974d7dcdc3df1361b84a14920cc9e4487e9c (patch)
tree00b6da86a6191e8803bb3ac552a8127712498950 /tox.ini
parente8e0a2483a8cd0edbd0ec77d92d638974c72f290 (diff)
downloadheat-d9df974d7dcdc3df1361b84a14920cc9e4487e9c.tar.gz
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. If we didn't setup this variable, the default action will be not showing any python deprecation warning. Change-Id: I78d1c68e51ee0833fd1ff0e9548c41bb9d1239a8
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 7b1c348cc..2c1ebfed0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,6 +5,7 @@ skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
+ PYTHONWARNINGS=default::DeprecationWarning
OS_TEST_PATH=heat/tests
TESTR_START_DIR=heat/tests
usedevelop = True