(pool_cls, dsn)
| 381 | |
| 382 | |
| 383 | async def test_closed_getconn(pool_cls, dsn): |
| 384 | p = pool_cls(dsn, min_size=min_size(pool_cls), open=False) |
| 385 | await p.open() |
| 386 | assert not p.closed |
| 387 | async with p.connection(): |
| 388 | pass |
| 389 | |
| 390 | await p.close() |
| 391 | assert p.closed |
| 392 | |
| 393 | with pytest.raises(pool.PoolClosed): |
| 394 | async with p.connection(): |
| 395 | pass |
| 396 | |
| 397 | |
| 398 | async def test_close_connection_on_pool_close(pool_cls, dsn): |
nothing calls this directly
no test coverage detected