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

Function test_aclose_on_sync

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

Source from the content-addressed store, hash-verified

508
509@pytest.mark.anyio
510async def test_aclose_on_sync():
511 response = httpx.Response(
512 200,
513 content=streaming_body(),
514 )
515
516 with pytest.raises(RuntimeError):
517 await response.aclose()
518
519
520@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

acloseMethod · 0.95
streaming_bodyFunction · 0.70

Tested by

no test coverage detected