From 97805c4dc8efdc7d96a4f9b1d5df007e1e2539ca Mon Sep 17 00:00:00 2001 From: Tony Locke Date: Sun, 31 Mar 2024 15:05:27 +0100 Subject: [PATCH] i --- test/native/auth/test_scram-sha-256.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/native/auth/test_scram-sha-256.py b/test/native/auth/test_scram-sha-256.py index a3b25f0..546dd8f 100644 --- a/test/native/auth/test_scram-sha-256.py +++ b/test/native/auth/test_scram-sha-256.py @@ -24,14 +24,16 @@ def setup(con): def test_scram_sha_256(setup, db_kwargs): db_kwargs["database"] = DB - Connection(**db_kwargs).close() + with Connection(**db_kwargs): + pass def test_scram_sha_256_ssl_False(setup, db_kwargs): db_kwargs["database"] = DB db_kwargs["ssl_context"] = False - Connection(**db_kwargs).close() + with Connection(**db_kwargs): + pass def test_scram_sha_256_ssl_True(setup, db_kwargs):