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

Method final

Lib/test/test_interpreters/utils.py:291–305  ·  view source on GitHub ↗
(self, *, force=False)

Source from the content-addressed store, hash-verified

289 return self._unpack_exc()
290
291 def final(self, *, force=False):
292 try:
293 return self._final
294 except AttributeError:
295 if not self._closed:
296 if not force:
297 raise Exception('no final results available yet')
298 else:
299 return CapturedResults.Proxy(self)
300 self._final = CapturedResults(
301 self._unpack_stdout(),
302 self._unpack_stderr(),
303 self._unpack_exc(),
304 )
305 return self._final
306
307
308class CapturedResults(namedtuple('CapturedResults', 'stdout stderr exc')):

Callers 8

stdoutMethod · 0.95
stderrMethod · 0.95
excMethod · 0.95
_finishMethod · 0.80
capturingMethod · 0.80
test_successMethod · 0.80
test_in_threadMethod · 0.80
test_execMethod · 0.80

Calls 4

_unpack_stdoutMethod · 0.95
_unpack_stderrMethod · 0.95
_unpack_excMethod · 0.95
CapturedResultsClass · 0.85

Tested by 3

test_successMethod · 0.64
test_in_threadMethod · 0.64
test_execMethod · 0.64