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

Method test_slowest

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

Source from the content-addressed store, hash-verified

1201 interrupted=True, stats=0)
1202
1203 def test_slowest(self):
1204 # test --slowest
1205 tests = [self.create_test() for index in range(3)]
1206 output = self.run_tests("--slowest", *tests)
1207 self.check_executed_tests(output, tests, stats=len(tests))
1208 regex = ('10 slowest tests:\n'
1209 '(?:- %s: .*\n){%s}'
1210 % (self.TESTNAME_REGEX, len(tests)))
1211 self.check_line(output, regex)
1212
1213 def test_slowest_interrupted(self):
1214 # Issue #25373: test --slowest with an interrupted test

Callers

nothing calls this directly

Calls 4

run_testsMethod · 0.95
create_testMethod · 0.80
check_executed_testsMethod · 0.80
check_lineMethod · 0.80

Tested by

no test coverage detected