Ignore warning from sqlalchemy-migrate

This has been fixed but not released. Another warning is updated since
modules don't have .py extensions.

Change-Id: Iaa93b9743214300597650040c1cd34699f12ab3f
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Related-Bug: #1813147
This commit is contained in:
Stephen Finucane 2019-09-25 15:59:12 +01:00 committed by Matt Riedemann
parent 79ee80d159
commit d0ca30b80a
1 changed files with 8 additions and 0 deletions

View File

@ -880,6 +880,14 @@ class WarningsFixture(fixtures.Fixture):
category=DeprecationWarning,
module='migrate.versioning.script.py')
# TODO(stephenfin): Remove once we bump our sqlalchemy-migrate version
# to whatever is released early in Ussuri and includes change
# I319785d7dd83ffe2c6e651a2494b073becc84684
warnings.filterwarnings(
'ignore', message='The Engine.contextual_connect.*',
category=sqla_exc.SADeprecationWarning,
module='migrate.changeset.databases.visitor')
self.addCleanup(warnings.resetwarnings)