diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-09-30 00:29:08 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <glongwave@gmail.com> | 2016-10-06 11:49:18 +0000 |
commit | 516f4341ff547fe251c75baf253d2e4074b401df (patch) | |
tree | 0c3839ed49d870100368e4b1586b9124d9fe6675 /tox.ini | |
parent | 85750a191382e8a074f76f3042c56faa7003fdd6 (diff) | |
download | ironic-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.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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} |