From d5937e182bbd21cee7acaaafd247526b16ddbaec Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Tue, 2 Nov 2021 13:41:29 +0100 Subject: [PATCH] Use the correct connection class in test_pool_async.py::test_putconn_no_pool() --- tests/pool/test_pool_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pool/test_pool_async.py b/tests/pool/test_pool_async.py index 9ce51512e..94ce17fb9 100644 --- a/tests/pool/test_pool_async.py +++ b/tests/pool/test_pool_async.py @@ -589,7 +589,7 @@ async def test_close_no_tasks(dsn): async def test_putconn_no_pool(dsn): async with pool.AsyncConnectionPool(dsn, min_size=1) as p: - conn = psycopg.connect(dsn) + conn = await psycopg.AsyncConnection.connect(dsn) with pytest.raises(ValueError): await p.putconn(conn) -- 2.47.2