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

Method display_summary

Lib/test/libregrtest/main.py:474–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

472 self.results.write_junit(self.junit_filename)
473
474 def display_summary(self) -> None:
475 if self.first_runtests is None:
476 raise ValueError(
477 "Should never call `display_summary()` before calling `_run_test()`"
478 )
479
480 duration = time.perf_counter() - self.logger.start_time
481 filtered = bool(self.match_tests)
482
483 # Total duration
484 print()
485 print("Total duration: %s" % format_duration(duration))
486
487 self.results.display_summary(self.first_runtests, filtered)
488
489 # Result
490 state = self.get_state()
491 print(f"Result: {state}")
492
493 def create_run_tests(self, tests: TestTuple) -> RunTests:
494 return RunTests(

Callers 1

_run_testsMethod · 0.95

Calls 2

get_stateMethod · 0.95
format_durationFunction · 0.85

Tested by

no test coverage detected