(self)
| 221 | await pool.release(con._con) |
| 222 | |
| 223 | async def test_pool_09(self): |
| 224 | pool1 = await self.create_pool(database='postgres', |
| 225 | init_size=1, min_size=1, max_size=1) |
| 226 | |
| 227 | pool2 = await self.create_pool(database='postgres', |
| 228 | init_size=1, min_size=1, max_size=1) |
| 229 | |
| 230 | try: |
| 231 | con = await pool1.acquire(timeout=POOL_NOMINAL_TIMEOUT) |
| 232 | with self.assertRaisesRegex(asyncpg.InterfaceError, |
| 233 | 'is not a member'): |
| 234 | await pool2.release(con) |
| 235 | finally: |
| 236 | await pool1.release(con) |
| 237 | |
| 238 | await pool1.close() |
| 239 | await pool2.close() |
| 240 | |
| 241 | async def test_pool_10(self): |
| 242 | pool = await self.create_pool(database='postgres', |
nothing calls this directly
no test coverage detected