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 <cyril@redhat.com>
This commit is contained in:
Cyril Roelandt
2025-09-18 04:10:13 +02:00
parent 92f208a2ea
commit a2ccf99c8b

View File

@@ -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