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

Method test_slowest

Lib/test/test_regrtest.py:1169–1177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1167 interrupted=True, stats=0)
1168
1169 def test_slowest(self):
1170 # test --slowest
1171 tests = [self.create_test() for index in range(3)]
1172 output = self.run_tests("--slowest", *tests)
1173 self.check_executed_tests(output, tests, stats=len(tests))
1174 regex = ('10 slowest tests:\n'
1175 '(?:- %s: .*\n){%s}'
1176 % (self.TESTNAME_REGEX, len(tests)))
1177 self.check_line(output, regex)
1178
1179 def test_slowest_interrupted(self):
1180 # Issue #25373: test --slowest with an interrupted test

Callers

nothing calls this directly

Calls 5

run_testsMethod · 0.95
lenFunction · 0.85
create_testMethod · 0.80
check_executed_testsMethod · 0.80
check_lineMethod · 0.80

Tested by

no test coverage detected