Browse Source

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: Ie91cdc1920fd39c1f4dc6ffd101c70ca2b794758
Henry Gessau 2 years ago
parent
commit
31298c3013
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      tox.ini

+ 1
- 0
tox.ini View File

@@ -13,6 +13,7 @@ install_command =
13 13
 # random hash seed successfully.
14 14
 setenv =
15 15
   VIRTUAL_ENV={envdir}
16
+  PYTHONWARNINGS=default::DeprecationWarning
16 17
 deps = -r{toxinidir}/test-requirements.txt
17 18
 whitelist_externals = sh
18 19
 commands =

Loading…
Cancel
Save