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

Method test_slowest_interrupted

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

Source from the content-addressed store, hash-verified

1211 self.check_line(output, regex)
1212
1213 def test_slowest_interrupted(self):
1214 # Issue #25373: test --slowest with an interrupted test
1215 code = TEST_INTERRUPTED
1216 test = self.create_test("sigint", code=code)
1217
1218 for multiprocessing in (False, True):
1219 with self.subTest(multiprocessing=multiprocessing):
1220 if multiprocessing:
1221 args = ("--slowest", "-j2", test)
1222 else:
1223 args = ("--slowest", test)
1224 output = self.run_tests(*args, exitcode=EXITCODE_INTERRUPTED)
1225 self.check_executed_tests(output, test,
1226 omitted=test, interrupted=True,
1227 stats=0)
1228
1229 regex = ('10 slowest tests:\n')
1230 self.check_line(output, regex)
1231
1232 def test_coverage(self):
1233 # test --coverage

Callers

nothing calls this directly

Calls 5

run_testsMethod · 0.95
create_testMethod · 0.80
check_executed_testsMethod · 0.80
check_lineMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected