From 58c66696c1f9bc860d10cc570c60a2d8a2431506 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Tue, 9 Aug 2016 19:51:41 -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: I64485da329b9ac8915675885783ffd5b2bf81ea6 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 81545e7..e771862 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ skipsdist = True [testenv] setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning usedevelop = True install_command = pip install -U {opts} {packages} deps = -r{toxinidir}/requirements.txt