(dsn, recwarn, gc_collect)
| 369 | |
| 370 | |
| 371 | async def test_del_no_warning(dsn, recwarn, gc_collect): |
| 372 | p = pool.AsyncConnectionPool(dsn, min_size=2, open=False) |
| 373 | await p.open() |
| 374 | async with p.connection() as conn: |
| 375 | await conn.execute("select 1") |
| 376 | |
| 377 | await p.wait() |
| 378 | ref = weakref.ref(p) |
| 379 | del p |
| 380 | gc_collect() |
| 381 | assert not ref() |
| 382 | assert not recwarn, [str(w.message) for w in recwarn.list] |
| 383 | |
| 384 | |
| 385 | async def test_closed_putconn(dsn): |
nothing calls this directly
no test coverage detected