(x)
| 473 | already_read = 0 |
| 474 | |
| 475 | def conv(x): |
| 476 | nonlocal already_read |
| 477 | if already_read > 4999: |
| 478 | raise ValueError("failed half-way through!") |
| 479 | already_read += 1 |
| 480 | return sentinel |
| 481 | |
| 482 | txt = StringIO("x\n" * 10000) |
| 483 |
no outgoing calls
no test coverage detected