MCPcopy
hub / github.com/encode/httpx / test_aiter_raw_on_sync

Function test_aiter_raw_on_sync

tests/models/test_responses.py:499–506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497
498@pytest.mark.anyio
499async def test_aiter_raw_on_sync():
500 response = httpx.Response(
501 200,
502 content=streaming_body(),
503 )
504
505 with pytest.raises(RuntimeError):
506 [part async for part in response.aiter_raw()]
507
508
509@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

aiter_rawMethod · 0.95
streaming_bodyFunction · 0.70

Tested by

no test coverage detected