From e232f6659529d39e42f7bbcaf79d828b8f27986b Mon Sep 17 00:00:00 2001 From: "pawnesh.kumar" Date: Wed, 26 Oct 2016 13:22:36 +0530 Subject: [PATCH] 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. Change-Id: Ib71e90531ebf6fae51f508c1c903c3fe346a93a7 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index a2bcd10f..d9cefdbd 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,7 @@ setenv = NOSE_OPENSTACK_STDOUT=1 NOSE_XUNIT=1 DISCOVER_DIRECTORY=mistralclient/tests/unit + PYTHONWARNINGS=default::DeprecationWarning passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY deps = -r{toxinidir}/requirements.txt