MCPcopy
hub / github.com/aio-libs/aiohttp / test_waituntil_limit

Function test_waituntil_limit

tests/test_parser_buffer.py:185–191  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

183
184
185def 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
194def test_waituntil_limit2(buf):

Callers

nothing calls this directly

Calls 2

waituntilMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected