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

Method create_worker_runtests

Lib/test/libregrtest/run_workers.py:269–285  ·  view source on GitHub ↗
(self, test_name: TestName, json_file: JsonFile)

Source from the content-addressed store, hash-verified

267 return (json_file, json_tmpfile)
268
269 def create_worker_runtests(self, test_name: TestName, json_file: JsonFile) -> WorkerRunTests:
270 tests = (test_name,)
271 if self.runtests.rerun:
272 match_tests = self.runtests.get_match_tests(test_name)
273 else:
274 match_tests = None
275
276 kwargs: dict[str, Any] = {}
277 if match_tests:
278 kwargs['match_tests'] = [(test, True) for test in match_tests]
279 if self.runtests.output_on_failure:
280 kwargs['verbose'] = True
281 kwargs['output_on_failure'] = False
282 return self.runtests.create_worker_runtests(
283 tests=tests,
284 json_file=json_file,
285 **kwargs)
286
287 def run_tmp_files(self, worker_runtests: WorkerRunTests,
288 stdout_fd: int) -> tuple[int | None, list[StrPath]]:

Callers 1

_runtestMethod · 0.95

Calls 1

get_match_testsMethod · 0.80

Tested by

no test coverage detected