From 97575c228b58079542cbca88e73f6a7a1788a940 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Mon, 8 Aug 2016 00:04:05 -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. Change-Id: I93d9447b5f26ba474d4c283a3df49cf4461c715d NOTE: All subprojects should do this too. --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index def520cd5e8..2f49bbc46a9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ skipsdist = True [testenv] setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY usedevelop = True install_command =