From 5e409fd335d607adcab801241efa0ee09a03f81a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 8 Mar 2021 03:26:12 +0100 Subject: [PATCH] Drop especially flaky async test dealing with del behaviour --- tests/pool/test_pool_async.py | 14 -------------- 1 file changed, 14 deletions(-) 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 -- 2.47.2