(self)
| 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 |
nothing calls this directly
no test coverage detected