diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 7db7b788818faedba16af6db9703b90c735cf2a1..20b8a385a16922a917fecf86a88128871c0cd34a 100644 --- a/oslo_db/tests/fixtures.py +++ b/oslo_db/tests/fixtures.py @@ -57,11 +57,6 @@ class WarningsFixture(fixtures.Fixture): message=r'The Executable.execute\(\) method is considered .*', category=sqla_exc.SADeprecationWarning) - warnings.filterwarnings( - 'once', - message=r'The Row.keys\(\) method is considered legacy .*', - category=sqla_exc.SADeprecationWarning) - warnings.filterwarnings( 'once', message=r'Retrieving row members using strings or other .*', diff --git a/oslo_db/tests/sqlalchemy/test_update_match.py b/oslo_db/tests/sqlalchemy/test_update_match.py index fdd1887ce39731b4a986c7dc3911345d5f00201c..b4c025befcb00c2ae07e1c1d10a9f4d36eb0a0cf 100644 --- a/oslo_db/tests/sqlalchemy/test_update_match.py +++ b/oslo_db/tests/sqlalchemy/test_update_match.py @@ -122,7 +122,7 @@ class UpdateMatchTest(db_test_base._DbTestCase): sql.select(MyModel.__table__).where(MyModel.__table__.c.id == pk) ).first() values['id'] = pk - self.assertEqual(values, dict(row)) + self.assertEqual(values, dict(row._mapping)) def test_update_specimen_successful(self): uuid = '136254d5-3869-408f-9da7-190e0072641a'