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