From 88af8f9921aeba539ab81ee703ceebae0e3f17f9 Mon Sep 17 00:00:00 2001 From: avnish Date: Tue, 7 Feb 2017 12:33:01 +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: Ib61fa1f8dfdf0aa4c0e23d7472058244d6b66c53 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index d496c6e..6555d69 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands =