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

Method prepare_rerun

Lib/test/libregrtest/results.py:151–169  ·  view source on GitHub ↗
(self, *, clear: bool = True)

Source from the content-addressed store, hash-verified

149 return bool(self.rerun_results)
150
151 def prepare_rerun(self, *, clear: bool = True) -> tuple[TestTuple, FilterDict]:
152 tests: TestList = []
153 match_tests_dict = {}
154 for result in self.rerun_results:
155 tests.append(result.test_name)
156
157 match_tests = result.get_rerun_match_tests()
158 # ignore empty match list
159 if match_tests:
160 match_tests_dict[result.test_name] = match_tests
161
162 if clear:
163 # Clear previously failed tests
164 self.rerun_bad.extend(self.bad)
165 self.bad.clear()
166 self.env_changed.clear()
167 self.rerun_results.clear()
168
169 return (tuple(tests), match_tests_dict)
170
171 def add_junit(self, xml_data: list[str]) -> None:
172 import xml.etree.ElementTree as ET

Callers 2

_rerun_failed_testsMethod · 0.80
run_bisectMethod · 0.80

Calls 4

get_rerun_match_testsMethod · 0.80
appendMethod · 0.45
extendMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected