From fce2a271c587c75ad40ca3a62935c459084aaa84 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 17 Jul 2019 14:33:58 -0400 Subject: Use connect, not contextual_connect Fixed one test that is using the deprecated, removed in SQLAlchemy 1.4 contextual_connect method. Change-Id: Ic9d23be6742bfc0aed4e032f3e1e01d5acf90131 --- oslo_db/tests/sqlalchemy/test_exc_filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oslo_db/tests/sqlalchemy/test_exc_filters.py b/oslo_db/tests/sqlalchemy/test_exc_filters.py index c844fcd..2701632 100644 --- a/oslo_db/tests/sqlalchemy/test_exc_filters.py +++ b/oslo_db/tests/sqlalchemy/test_exc_filters.py @@ -1477,15 +1477,15 @@ class TestDBConnectPingWrapping(TestsExceptionFilter): with self._fixture(dialect_name, exc_obj, 1, is_disconnect): self.assertRaises( exception.DBConnectionError, - self.engine.contextual_connect + self.engine.connect ) self.assertRaises( exception.DBConnectionError, - self.engine.contextual_connect + self.engine.connect ) self.assertRaises( exception.DBConnectionError, - self.engine.contextual_connect + self.engine.connect ) def test_mysql_w_disconnect_flag(self): -- cgit v1.2.1