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

Method test_exception_class

Lib/test/test_asyncio/test_futures.py:321–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

319 self.test_stop_iteration_exception(MyStopIteration)
320
321 def test_exception_class(self):
322 f = self._new_future(loop=self.loop)
323 f.set_exception(RuntimeError)
324 self.assertIsInstance(f.exception(), RuntimeError)
325
326 def test_yield_from_twice(self):
327 f = self._new_future(loop=self.loop)

Callers

nothing calls this directly

Calls 4

_new_futureMethod · 0.95
assertIsInstanceMethod · 0.80
set_exceptionMethod · 0.45
exceptionMethod · 0.45

Tested by

no test coverage detected