From: Denis Laxalde Date: Tue, 2 Nov 2021 12:41:29 +0000 (+0100) Subject: Use the correct connection class in test_pool_async.py::test_putconn_no_pool() X-Git-Tag: 3.0.2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5937e182bbd21cee7acaaafd247526b16ddbaec;p=thirdparty%2Fpsycopg.git Use the correct connection class in test_pool_async.py::test_putconn_no_pool() --- 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)