MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / throw_exc

Function throw_exc

tests/test_client_request.py:1207–1209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1205 assert req.headers["TRANSFER-ENCODING"] == "chunked"
1206
1207 async def throw_exc():
1208 await asyncio.sleep(0.01)
1209 fut.set_exception(ValueError)
1210
1211 loop.create_task(throw_exc())
1212

Callers 2

test_data_stream_excFunction · 0.85

Calls 1

set_exceptionMethod · 0.45

Tested by

no test coverage detected