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

Method display_result

Lib/test/libregrtest/run_workers.py:556–570  ·  view source on GitHub ↗
(self, mp_result: MultiprocessResult)

Source from the content-addressed store, hash-verified

554 return None
555
556 def display_result(self, mp_result: MultiprocessResult) -> None:
557 result = mp_result.result
558 pgo = self.runtests.pgo
559
560 text = str(result)
561 if mp_result.err_msg:
562 # WORKER_BUG
563 text += ' (%s)' % mp_result.err_msg
564 elif (result.duration and result.duration >= PROGRESS_MIN_TIME and not pgo):
565 text += ' (%s)' % format_duration(result.duration)
566 if not pgo:
567 running = get_running(self.workers)
568 if running:
569 text += f' -- {running}'
570 self.display_progress(self.test_index, text)
571
572 def _process_result(self, item: QueueOutput) -> TestResult:
573 """Returns True if test runner must stop."""

Callers 1

_process_resultMethod · 0.95

Calls 4

strFunction · 0.85
format_durationFunction · 0.85
get_runningFunction · 0.85
display_progressMethod · 0.80

Tested by

no test coverage detected