MCPcopy
hub / github.com/MagicStack/asyncpg / test_pool_08

Method test_pool_08

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

Source from the content-addressed store, hash-verified

195 await self.create_pool(database='postgres', connect=bad_connect)
196
197 async def test_pool_08(self):
198 pool = await self.create_pool(database='postgres',
199 min_size=1, max_size=1)
200
201 con = await pool.acquire(timeout=POOL_NOMINAL_TIMEOUT)
202 with self.assertRaisesRegex(asyncpg.InterfaceError, 'is not a member'):
203 await pool.release(con._con)
204
205 async def test_pool_09(self):
206 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