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

Method display_progress

Lib/test/libregrtest/logger.py:54–64  ·  view source on GitHub ↗
(self, test_index: int, text: str)

Source from the content-addressed store, hash-verified

52 return None
53
54 def display_progress(self, test_index: int, text: str) -> None:
55 if self._quiet:
56 return
57 results = self._results
58
59 # "[ 51/405/1] test_tcl passed"
60 line = f"{test_index:{self.test_count_width}}{self.test_count_text}"
61 fails = len(results.bad) + len(results.env_changed)
62 if fails and not self._pgo:
63 line = f"{line}/{fails}"
64 self.log(f"[{line}] {text}")
65
66 def set_tests(self, runtests: RunTests) -> None:
67 if runtests.forever:

Callers 2

display_resultMethod · 0.80

Calls 1

logMethod · 0.95

Tested by

no test coverage detected