From bca532b67492cdfca674aa48f4ae58fa1da37612 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Tue, 9 Aug 2016 19:03:33 -0400 Subject: [PATCH] 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. Depends-On: Ibeabf474194b2d38273d76117a3a2f3bee5f7286 Change-Id: Iab8171ac0943c774be0d2117ac442f2e153b3c7f --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 062ca6724..24f0ce3c9 100644 --- a/tox.ini +++ b/tox.ini @@ -9,6 +9,7 @@ setenv = VIRTUAL_ENV={envdir} LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=C + PYTHONWARNINGS=default::DeprecationWarning usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}