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

Method gen

tests/test_execute.py:265–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 pos = 0
264
265 def gen():
266 nonlocal pos
267 while pos < 128:
268 pos += 1
269 if pos < 3:
270 yield ('a', 0)
271 else:
272 yield 'a' * 32768, pos
273
274 with self.assertRaises(exceptions.UniqueViolationError):
275 await self.con.executemany(''&#x27;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected