(buf)
| 140 | |
| 141 | |
| 142 | def test_readuntil_limit(buf): |
| 143 | p = buf.readuntil(b'\n', 4) |
| 144 | next(p) |
| 145 | p.send(b'1') |
| 146 | p.send(b'234') |
| 147 | with pytest.raises(errors.LineLimitExceededParserError): |
| 148 | p.send(b'5') |
| 149 | |
| 150 | |
| 151 | def test_readuntil_limit2(buf): |