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

Method test_pool_09

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

Source from the content-addressed store, hash-verified

203 await pool.release(con._con)
204
205 async def test_pool_09(self):
206 pool1 = await self.create_pool(database='postgres',
207 min_size=1, max_size=1)
208
209 pool2 = await self.create_pool(database='postgres',
210 min_size=1, max_size=1)
211
212 try:
213 con = await pool1.acquire(timeout=POOL_NOMINAL_TIMEOUT)
214 with self.assertRaisesRegex(asyncpg.InterfaceError,
215 'is not a member'):
216 await pool2.release(con)
217 finally:
218 await pool1.release(con)
219
220 await pool1.close()
221 await pool2.close()
222
223 async def test_pool_10(self):
224 pool = await self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 4

create_poolMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected