psycopg.git / summary / log / commit / refs
commit d5937e182bbd21cee7acaaafd247526b16ddbaec
Author: Denis Laxalde <denis.laxalde@dalibo.com>
Commit: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Tue Nov 02 12:41:29 2021 +0000
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 9ce51512..94ce17fb 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)
[parent: 8bfb7a0bb46d]