diff options
author | jiansong <jian.song@easystack.cn> | 2016-10-21 01:32:00 -0700 |
---|---|---|
committer | jian.song <jian.song@easystack.cn> | 2016-12-07 05:59:35 +0000 |
commit | 60d3617db2d5973c37dddf223c717b89253c424d (patch) | |
tree | a82c7041fcbf58592f3224e1958c9a5d552b5280 /tox.ini | |
parent | 77fd7014c0007c83652dd4fb1f9d3316a97b1ed3 (diff) | |
download | trove-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.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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} \ |