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

Method set_exception

Lib/test/test_asyncio/test_futures.py:92–95  ·  view source on GitHub ↗
(self, exception)

Source from the content-addressed store, hash-verified

90 self.__result = result
91
92 def set_exception(self, exception):
93 self.assertFalse(self.done())
94 self.assertIsNotNone(exception)
95 self.__exception = exception
96
97 def __iter__(self):
98 if not self.done():

Calls 3

doneMethod · 0.95
assertFalseMethod · 0.80
assertIsNotNoneMethod · 0.80

Tested by

no test coverage detected