MCPcopy Index your code
hub / github.com/python/cpython / set_err

Method set_err

Lib/test/test_asyncio/test_streams.py:597–598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595 stream = asyncio.StreamReader(loop=self.loop)
596
597 async def set_err():
598 stream.set_exception(ValueError())
599
600 t1 = self.loop.create_task(stream.readline())
601 t2 = self.loop.create_task(set_err())

Callers

nothing calls this directly

Calls 1

set_exceptionMethod · 0.45

Tested by

no test coverage detected