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

Method test_pool_06

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

Source from the content-addressed store, hash-verified

121 await pool.close()
122
123 async def test_pool_06(self):
124 fut = asyncio.Future()
125
126 async def setup(con):
127 fut.set_result(con)
128
129 async with self.create_pool(database='postgres',
130 min_size=5, max_size=5,
131 setup=setup) as pool:
132 async with pool.acquire() as con:
133 pass
134
135 self.assertIs(con, await fut)
136
137 async def test_pool_07(self):
138 cons = set()

Callers

nothing calls this directly

Calls 2

create_poolMethod · 0.45
acquireMethod · 0.45

Tested by

no test coverage detected