diff options
Diffstat (limited to 'oslo_db/tests/sqlalchemy/test_exc_filters.py')
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_exc_filters.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/oslo_db/tests/sqlalchemy/test_exc_filters.py b/oslo_db/tests/sqlalchemy/test_exc_filters.py index 796ba6c..816ef7e 100644 --- a/oslo_db/tests/sqlalchemy/test_exc_filters.py +++ b/oslo_db/tests/sqlalchemy/test_exc_filters.py @@ -416,16 +416,7 @@ class TestNonExistentDatabase( super(TestNonExistentDatabase, self).setUp() url = utils.make_url(self.engine.url) - - # TODO(zzzeek): remove hasattr() conditional in favor of "url.set()" - # when SQLAlchemy 1.4 is the minimum version in requirements - if hasattr(url, "set"): - self.url = url.set(database="non_existent_database") - else: - # TODO(zzzeek): remove when SQLAlchemy 1.4 - # is the minimum version in requirements - url.database = 'non_existent_database' - self.url = url + self.url = url.set(database="non_existent_database") def test_raise(self): matched = self.assertRaises( |