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

Method create_run_tests

Lib/test/libregrtest/main.py:493–519  ·  view source on GitHub ↗
(self, tests: TestTuple)

Source from the content-addressed store, hash-verified

491 print(f"Result: {state}")
492
493 def create_run_tests(self, tests: TestTuple) -> RunTests:
494 return RunTests(
495 tests,
496 fail_fast=self.fail_fast,
497 fail_env_changed=self.fail_env_changed,
498 match_tests=self.match_tests,
499 match_tests_dict=None,
500 rerun=False,
501 forever=self.forever,
502 pgo=self.pgo,
503 pgo_extended=self.pgo_extended,
504 output_on_failure=self.output_on_failure,
505 timeout=self.timeout,
506 verbose=self.verbose,
507 quiet=self.quiet,
508 hunt_refleak=self.hunt_refleak,
509 test_dir=self.test_dir,
510 use_junit=(self.junit_filename is not None),
511 coverage=self.coverage,
512 memory_limit=self.memory_limit,
513 gc_threshold=self.gc_threshold,
514 use_resources=self.use_resources,
515 python_cmd=self.python_cmd,
516 randomize=self.randomize,
517 random_seed=self.random_seed,
518 parallel_threads=self.parallel_threads,
519 )
520
521 def _run_tests(self, selected: TestTuple, tests: TestList | None) -> int:
522 if self.hunt_refleak and self.hunt_refleak.warmups < 3:

Callers 1

_run_testsMethod · 0.95

Calls 1

RunTestsClass · 0.70

Tested by

no test coverage detected