(buf)
| 183 | |
| 184 | |
| 185 | def test_waituntil_limit(buf): |
| 186 | p = buf.waituntil(b'\n', 4) |
| 187 | next(p) |
| 188 | p.send(b'1') |
| 189 | p.send(b'234') |
| 190 | with pytest.raises(errors.LineLimitExceededParserError): |
| 191 | p.send(b'5') |
| 192 | |
| 193 | |
| 194 | def test_waituntil_limit2(buf): |