(self)
| 139 | await pool.close() |
| 140 | |
| 141 | async def test_pool_06(self): |
| 142 | fut = asyncio.Future() |
| 143 | |
| 144 | async def setup(con): |
| 145 | fut.set_result(con) |
| 146 | |
| 147 | async with self.create_pool(database='postgres', |
| 148 | init_size=5, min_size=1, max_size=5, |
| 149 | setup=setup) as pool: |
| 150 | async with pool.acquire() as con: |
| 151 | pass |
| 152 | |
| 153 | self.assertIs(con, await fut) |
| 154 | |
| 155 | async def test_pool_07(self): |
| 156 | cons = set() |
nothing calls this directly
no test coverage detected