From e582207a6649cb7f6dacf971a2048ccc0136baf3 Mon Sep 17 00:00:00 2001 From: Deepak Date: Wed, 26 Oct 2016 13:41:37 +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: I30c033728da02aec1313099b4cc0dc446712f2db --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 90e2429161..cf6572498e 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ whitelist_externals = sudo setenv = VIRTUAL_ENV={envdir} - + PYTHONWARNINGS=default::DeprecationWarning [testenv:docs] commands=