From: Daniele Varrazzo Date: Mon, 8 Mar 2021 02:26:12 +0000 (+0100) Subject: Drop especially flaky async test dealing with del behaviour X-Git-Tag: 3.0.dev0~87^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e409fd335d607adcab801241efa0ee09a03f81a;p=thirdparty%2Fpsycopg.git Drop especially flaky async test dealing with del behaviour --- diff --git a/tests/pool/test_pool_async.py b/tests/pool/test_pool_async.py index 090530487..123fb12a4 100644 --- a/tests/pool/test_pool_async.py +++ b/tests/pool/test_pool_async.py @@ -1,7 +1,6 @@ import sys import asyncio import logging -import weakref from time import time from collections import Counter @@ -443,19 +442,6 @@ async def test_putconn_wrong_pool(dsn): await p2.putconn(conn) -async def test_del_no_warning(dsn, recwarn): - p = pool.AsyncConnectionPool(dsn, minconn=2) - async with p.connection() as conn: - await conn.execute("select 1") - - await p.wait_ready() - ref = weakref.ref(p) - del p - await asyncio.sleep(0.1) # TODO: I wish it wasn't needed - assert not ref() - assert not recwarn - - async def test_closed_getconn(dsn): p = pool.AsyncConnectionPool(dsn, minconn=1) assert not p.closed