From 4aa4d666ad04f5c1c4244c012ad1b2fe5f260ea2 Mon Sep 17 00:00:00 2001 From: "shashi.kant" Date: Wed, 26 Oct 2016 13:41:23 +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: Ib394e5f3f4f600cb2595294c5582695d3acf9b57 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 73153fc8..9aabed34 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ envlist = py34,py27,pep8 [testenv] setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning usedevelop = True install_command = pip install {opts} {packages}