diff options
Diffstat (limited to 'oslo_db')
-rw-r--r-- | oslo_db/tests/fixtures.py | 5 | ||||
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_utils.py | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 8e70458..1f240ae 100644 --- a/oslo_db/tests/fixtures.py +++ b/oslo_db/tests/fixtures.py @@ -49,11 +49,6 @@ class WarningsFixture(fixtures.Fixture): warnings.filterwarnings( 'once', - message=r'The autoload parameter is deprecated .*', - category=sqla_exc.SADeprecationWarning) - - warnings.filterwarnings( - 'once', message=r'Using non-integer/slice indices on Row is deprecated .*', category=sqla_exc.SADeprecationWarning) diff --git a/oslo_db/tests/sqlalchemy/test_utils.py b/oslo_db/tests/sqlalchemy/test_utils.py index 5fdc916..7531332 100644 --- a/oslo_db/tests/sqlalchemy/test_utils.py +++ b/oslo_db/tests/sqlalchemy/test_utils.py @@ -927,7 +927,7 @@ class TestMigrationUtils(db_test_base._DbTestCase): utils._change_deleted_column_type_to_id_type_sqlite(self.engine, table_name) - table = Table(table_name, self.meta, autoload=True) + table = Table(table_name, self.meta, autoload_with=self.engine) # NOTE(I159): if the CHECK constraint has been dropped (expected # behavior), any integer value can be inserted, otherwise only 1 or 0. # NOTE(zzzeek): SQLAlchemy 1.2 Boolean type will disallow non 1/0 |