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

Method run_worker

Lib/test/libregrtest/parallel_case.py:20–23  ·  view source on GitHub ↗
(self, test_case: TestCase, result: unittest.TestResult,
                   barrier: threading.Barrier)

Source from the content-addressed store, hash-verified

18 return f"{str(self.test_case)} [threads={self.num_threads}]"
19
20 def run_worker(self, test_case: TestCase, result: unittest.TestResult,
21 barrier: threading.Barrier):
22 barrier.wait()
23 test_case.run(result)
24
25 def run(self, result=None):
26 if result is None:

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected