diff options
Diffstat (limited to 'oslo_db')
-rw-r--r-- | oslo_db/sqlalchemy/test_migrations.py | 6 | ||||
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_sqlalchemy.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/oslo_db/sqlalchemy/test_migrations.py b/oslo_db/sqlalchemy/test_migrations.py index 07d058b..9d3a0bd 100644 --- a/oslo_db/sqlalchemy/test_migrations.py +++ b/oslo_db/sqlalchemy/test_migrations.py @@ -500,9 +500,9 @@ class ModelsMigrationsSync(object, metaclass=abc.ABCMeta): [('drop_key', 'testtbl_fk_check_fkey', 'testtbl', - fk_info(constrained_columns=(u'fk_check',), - referred_table=u'table', - referred_columns=(u'fk_check',)))] + fk_info(constrained_columns=('fk_check',), + referred_table='table', + referred_columns=('fk_check',)))] DEPRECATED: this function is deprecated and will be removed from oslo.db in a few releases. Alembic autogenerate.compare_metadata() diff --git a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py index 080f418..8a48eca 100644 --- a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py +++ b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py @@ -67,7 +67,7 @@ class RegexpFilterTestCase(test_base._DbTestCase): def _test_regexp_filter(self, regexp, expected): with enginefacade.writer.using(test_base.context): _session = test_base.context.session - for i in ['10', '20', u'♥']: + for i in ['10', '20', '♥']: tbl = RegexpTable() tbl.update({'bar': i}) tbl.save(session=_session) @@ -83,10 +83,10 @@ class RegexpFilterTestCase(test_base._DbTestCase): self._test_regexp_filter('11', []) def test_regexp_filter_unicode(self): - self._test_regexp_filter(u'♥', [u'♥']) + self._test_regexp_filter('♥', ['♥']) def test_regexp_filter_unicode_nomatch(self): - self._test_regexp_filter(u'♦', []) + self._test_regexp_filter('♦', []) class SQLiteSavepointTest(test_base._DbTestCase): |