summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Gessau <gessau@gmail.com>2016-08-09 19:13:57 -0400
committerHenry Gessau <gessau@gmail.com>2016-08-09 19:13:57 -0400
commit31298c3013aef11cc12093a53730656a5e32ee48 (patch)
treedb02ebce708338fd3275a14bdcb397ff760002b0
parent83411b1f0fec7495987d7aa1c387c5be04fe1296 (diff)
Enable 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. Change-Id: Ie91cdc1920fd39c1f4dc6ffd101c70ca2b794758
Notes
Notes (review): Code-Review+2: Akihiro Motoki <amotoki@gmail.com> Workflow+1: Akihiro Motoki <amotoki@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 17 Aug 2016 17:11:46 +0000 Reviewed-on: https://review.openstack.org/353161 Project: openstack/networking-nec Branch: refs/heads/master
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 3cbadf0..153399a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,6 +13,7 @@ install_command =
13# random hash seed successfully. 13# random hash seed successfully.
14setenv = 14setenv =
15 VIRTUAL_ENV={envdir} 15 VIRTUAL_ENV={envdir}
16 PYTHONWARNINGS=default::DeprecationWarning
16deps = -r{toxinidir}/test-requirements.txt 17deps = -r{toxinidir}/test-requirements.txt
17whitelist_externals = sh 18whitelist_externals = sh
18commands = 19commands =