(dsn, recwarn, gc_collect)
| 369 | |
| 370 | |
| 371 | def test_del_no_warning(dsn, recwarn, gc_collect): |
| 372 | p = pool.ConnectionPool(dsn, min_size=2, open=False) |
| 373 | p.open() |
| 374 | with p.connection() as conn: |
| 375 | conn.execute("select 1") |
| 376 | |
| 377 | 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 | def test_closed_putconn(dsn): |
nothing calls this directly
no test coverage detected