From a2ccf99c8bdb59631227dfb5d8cf4cf3a60040d5 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Thu, 18 Sep 2025 04:10:13 +0200 Subject: [PATCH] Remove the last reference to OsloDBDeprecationWarning This has been removed from oslo.db[1] and is causing test failures. [1] https://review.opendev.org/c/openstack/oslo.db/+/798135 Change-Id: I2a6d85d8455fe05b910a24b8e95680a93dc8e924 Signed-off-by: Cyril Roelandt --- glance/tests/unit/fixtures.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/glance/tests/unit/fixtures.py b/glance/tests/unit/fixtures.py index 0357493c4b..dfe1f99fc9 100644 --- a/glance/tests/unit/fixtures.py +++ b/glance/tests/unit/fixtures.py @@ -18,7 +18,6 @@ import os import warnings import fixtures as pyfixtures -from oslo_db import warning as oslo_db_warning from sqlalchemy import exc as sqla_exc _TRUE_VALUES = ('True', 'true', '1', 'yes') @@ -147,16 +146,6 @@ class WarningsFixture(pyfixtures.Fixture): category=DeprecationWarning, ) - # Disable deprecation warning for oslo.db's EngineFacade. We *really* - # need to get off this but it's not happening while sqlalchemy 2.0 - # stuff is ongoing - - warnings.filterwarnings( - 'ignore', - category=oslo_db_warning.OsloDBDeprecationWarning, - message='EngineFacade is deprecated', - ) - # Enable deprecation warnings for glance itself to capture upcoming # SQLAlchemy changes