]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Use the correct connection class in test_pool_async.py::test_putconn_no_pool()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 2 Nov 2021 12:41:29 +0000 (13:41 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 3 Nov 2021 15:55:14 +0000 (16:55 +0100)
tests/pool/test_pool_async.py

index 9ce51512ea7be8bc559fabd2878643b6b3f1d259..94ce17fb928dffd5e0f1ab61a9da8e53e865c747 100644 (file)
@@ -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)