MCPcopy Create free account
hub / github.com/python/cpython / run_bisect

Method run_bisect

Lib/test/libregrtest/main.py:355–364  ·  view source on GitHub ↗
(self, runtests: RunTests)

Source from the content-addressed store, hash-verified

353 return True
354
355 def run_bisect(self, runtests: RunTests) -> None:
356 tests, _ = self.results.prepare_rerun(clear=False)
357
358 for index, name in enumerate(tests, 1):
359 if len(tests) > 1:
360 progress = f"{index}/{len(tests)}"
361 else:
362 progress = ""
363 if not self._run_bisect(runtests, name, progress):
364 return
365
366 def display_result(self, runtests: RunTests) -> None:
367 # If running the test suite for PGO then no one cares about results.

Callers 1

_run_testsMethod · 0.95

Calls 3

_run_bisectMethod · 0.95
enumerateFunction · 0.85
prepare_rerunMethod · 0.80

Tested by

no test coverage detected