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

Method run

Lib/test/libregrtest/run_workers.py:601–627  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

599 return result
600
601 def run(self) -> None:
602 fail_fast = self.runtests.fail_fast
603 fail_env_changed = self.runtests.fail_env_changed
604
605 self.start_workers()
606
607 self.test_index = 0
608 try:
609 while True:
610 item = self._get_result()
611 if item is None:
612 break
613
614 result = self._process_result(item)
615 if result.must_stop(fail_fast, fail_env_changed):
616 break
617 except KeyboardInterrupt:
618 print()
619 self.results.interrupted = True
620 finally:
621 if self.timeout is not None:
622 faulthandler.cancel_dump_traceback_later()
623
624 # Always ensure that all worker processes are no longer
625 # worker when we exit this function
626 self.pending.stop()
627 self.stop_workers()

Callers 4

display_headerFunction · 0.45
_run_suiteFunction · 0.45
_run_bisectMethod · 0.45
_run_tests_mpMethod · 0.45

Calls 6

start_workersMethod · 0.95
_get_resultMethod · 0.95
_process_resultMethod · 0.95
stop_workersMethod · 0.95
must_stopMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected