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

Method test___repr__exception

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

Source from the content-addressed store, hash-verified

989 self.assertEqual("<StreamReader 4 bytes>", repr(stream))
990
991 def test___repr__exception(self):
992 stream = asyncio.StreamReader(loop=self.loop)
993 exc = RuntimeError()
994 stream.set_exception(exc)
995 self.assertEqual("<StreamReader exception=RuntimeError()>",
996 repr(stream))
997
998 def test___repr__waiter(self):
999 stream = asyncio.StreamReader(loop=self.loop)

Callers

nothing calls this directly

Calls 2

set_exceptionMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected