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

Method set_tests

Lib/test/libregrtest/logger.py:66–72  ·  view source on GitHub ↗
(self, runtests: RunTests)

Source from the content-addressed store, hash-verified

64 self.log(f"[{line}] {text}")
65
66 def set_tests(self, runtests: RunTests) -> None:
67 if runtests.forever:
68 self.test_count_text = ''
69 self.test_count_width = 3
70 else:
71 self.test_count_text = '/{}'.format(len(runtests.tests))
72 self.test_count_width = len(self.test_count_text) - 1
73
74 def start_load_tracker(self) -> None:
75 if not MS_WINDOWS:

Callers 2

_rerun_failed_testsMethod · 0.80
_run_testsMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected