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

Function test_close_on_async

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

Source from the content-addressed store, hash-verified

449
450
451def test_close_on_async():
452 response = httpx.Response(
453 200,
454 content=async_streaming_body(),
455 )
456
457 with pytest.raises(RuntimeError):
458 response.close()
459
460
461def test_iter_raw_increments_updates_counter():

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
async_streaming_bodyFunction · 0.85

Tested by

no test coverage detected