From 30f6475665ed67a0d4ccef0950b7d09d68226aff Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Tue, 9 Aug 2016 19:59:18 -0400 Subject: [PATCH] Enable DeprecationWarning in test environments Neutron is refactoring a lot of its code. For example, common entities are being moved to neutron-lib. When code is refactored it is marked with debtcollector, which issues a deprecation warning. In the next release the old entity will be removed. Consuming projects (like tricircle) must update to comply with the new entity before the old one is removed. Tricircle maintainers must monitor deprecation warnings and act on them before the next release. 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: Iade909b35a55cebb7dfe13a688f451ad91989b94 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index ffb3b0e..2275ee2 100644 --- a/tox.ini +++ b/tox.ini @@ -9,6 +9,7 @@ usedevelop = True install_command = pip install -U --force-reinstall {opts} {packages} setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning TRICIRCLE_TEST_DIRECTORY=tricircle/tests deps = -r{toxinidir}/test-requirements.txt