summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2016-09-30 00:29:08 +0800
committerChangBo Guo(gcb) <glongwave@gmail.com>2016-10-06 11:49:18 +0000
commit516f4341ff547fe251c75baf253d2e4074b401df (patch)
tree0c3839ed49d870100368e4b1586b9124d9fe6675 /tox.ini
parent85750a191382e8a074f76f3042c56faa7003fdd6 (diff)
downloadironic-516f4341ff547fe251c75baf253d2e4074b401df.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. Note: this copy from 1be35ff039d67c50866f2556ef847b048cbf3578 Change-Id: Iac2fc6fdbf9596209ab44fa2274bd66620043a49
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 ce375ce34..a8583ce65 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
+ PYTHONWARNINGS=default::DeprecationWarning
TESTS_DIR=./ironic/tests/unit/
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}