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

Method gen

tests/test_execute.py:239–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237 pos = 0
238
239 def gen():
240 nonlocal pos
241 while pos < 128:
242 pos += 1
243 if pos < 3:
244 yield ('a', 0)
245 else:
246 yield 'a' * 32768, pos
247
248 with self.assertRaises(exceptions.UniqueViolationError):
249 await self.con.executemany(''&#x27;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected