From d0ca30b80a5063d5541587deda33e1a466a10f30 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 25 Sep 2019 15:59:12 +0100 Subject: [PATCH] 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 Related-Bug: #1813147 --- nova/tests/fixtures.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nova/tests/fixtures.py b/nova/tests/fixtures.py index 8582f48f889b..d74e0eafd899 100644 --- a/nova/tests/fixtures.py +++ b/nova/tests/fixtures.py @@ -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)