MCPcopy Index your code
hub / github.com/RustPython/RustPython / create_run_tests

Method create_run_tests

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

Source from the content-addressed store, hash-verified

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