()
| 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(''' |
nothing calls this directly
no outgoing calls
no test coverage detected