From 29867149e8c946e084482c6938ffcf89a914e528 Mon Sep 17 00:00:00 2001 From: Roger Yang Date: Tue, 17 Sep 2024 08:23:13 -0700 Subject: [PATCH] clen up --- integration_tests/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/_helpers.py b/integration_tests/_helpers.py index 02e28f9abd..552c38d660 100644 --- a/integration_tests/_helpers.py +++ b/integration_tests/_helpers.py @@ -624,7 +624,7 @@ def _random_schema( ) -> Iterator[str]: engine = create_engine(url.set(drivername="postgresql+psycopg")) try: - engine.connect() + engine.connect().close() except OperationalError as exc: if "too many clients" in str(exc): pass