summaryrefslogtreecommitdiff
path: root/oslo_db/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-04-17 14:13:42 +0000
committerGerrit Code Review <review@openstack.org>2023-04-17 14:13:42 +0000
commitb557c6a30cfcdbb4673dbfdb29f40c68d9d190b0 (patch)
tree2c966aa46701b0ef845964803dae3c743d8be670 /oslo_db/tests
parentf67df4a1663521a423d1054a24ebc7e634b52ed6 (diff)
parent56d79bf3784bacf4fa17cee31a1ba1a8b3680dba (diff)
downloadoslo-db-b557c6a30cfcdbb4673dbfdb29f40c68d9d190b0.tar.gz
Merge "Remove logic for SQLAlchemy < 1.4"
Diffstat (limited to 'oslo_db/tests')
-rw-r--r--oslo_db/tests/sqlalchemy/test_exc_filters.py11
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(