Browse Source

Enable DeprecationWarning in test environments

Neutron is refactoring a lot of its code. For example, common entities
are being moved to neutron-lib. When code is refactored it is marked
with debtcollector, which issues a deprecation warning. In the next
release the old entity will be removed. Consuming projects (like
tricircle) must update to comply with the new entity before the old
one is removed.

Tricircle maintainers must monitor deprecation warnings and act on them
before the next release.

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: Iade909b35a55cebb7dfe13a688f451ad91989b94
changes/92/353192/2
Henry Gessau 5 years ago
committed by Henry Gessau
parent
commit
30f6475665
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tox.ini

+ 1
- 0
tox.ini View File

@ -9,6 +9,7 @@ usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
TRICIRCLE_TEST_DIRECTORY=tricircle/tests
deps =
-r{toxinidir}/test-requirements.txt


Loading…
Cancel
Save