Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_exc
Function · 0.85
test_data_stream_exc_chain
Function · 0.85
Calls
1
set_exception
Method · 0.45
Tested by
no test coverage detected