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

Method test_exception

Lib/test/test_asyncio/test_streams.py:586–592  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 ValueError, self.loop.run_until_complete, stream.readexactly(2))
585
586 def test_exception(self):
587 stream = asyncio.StreamReader(loop=self.loop)
588 self.assertIsNone(stream.exception())
589
590 exc = ValueError()
591 stream.set_exception(exc)
592 self.assertIs(stream.exception(), exc)
593
594 def test_exception_waiter(self):
595 stream = asyncio.StreamReader(loop=self.loop)

Callers

nothing calls this directly

Calls 4

exceptionMethod · 0.95
set_exceptionMethod · 0.95
assertIsNoneMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected