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.
If we didn't setup this variable, the default action will be not
showing any python deprecation warning.

Change-Id: I78d1c68e51ee0833fd1ff0e9548c41bb9d1239a8
This commit is contained in:
ricolin 2016-11-22 15:59:17 +08:00 committed by Rico Lin
parent e8e0a2483a
commit d9df974d7d
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_TEST_PATH=heat/tests
TESTR_START_DIR=heat/tests
usedevelop = True