MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_pool_08

Method test_pool_08

tests/test_pool.py:215–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 await self.create_pool(database='postgres', connect=bad_connect)
214
215 async def test_pool_08(self):
216 pool = await self.create_pool(database='postgres',
217 init_size=1, min_size=1, max_size=1)
218
219 con = await pool.acquire(timeout=POOL_NOMINAL_TIMEOUT)
220 with self.assertRaisesRegex(asyncpg.InterfaceError, 'is not a member'):
221 await pool.release(con._con)
222
223 async def test_pool_09(self):
224 pool1 = await self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 3

create_poolMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected