MCPcopy
hub / github.com/aio-libs/aiohttp / test_exception

Function test_exception

tests/test_stream_parser.py:25–31  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

23
24
25def test_exception(loop):
26 stream = parsers.StreamParser(loop=loop)
27 assert stream.exception() is None
28
29 exc = ValueError()
30 stream.set_exception(exc)
31 assert stream.exception() is exc
32
33
34def test_exception_connection_error(loop):

Callers

nothing calls this directly

Calls 2

exceptionMethod · 0.95
set_exceptionMethod · 0.95

Tested by

no test coverage detected