summaryrefslogtreecommitdiff
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-17 11:25:43 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-08-17 11:25:43 +0200
commit6c44619ece6b6c59075d934af160e20d2025f901 (patch)
tree0fc8e555af55989345d5eb1e7f81634f6e99635b /Lib/test/test_regrtest.py
parent717a32b75569b9f42792a8c515a5e463a9380e4a (diff)
downloadcpython-git-6c44619ece6b6c59075d934af160e20d2025f901.tar.gz
regrtest: rename --slow option to --slowest
Thanks to optparse, --slow syntax still works ;-)
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 32edff856f..4a96c6f069 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -109,7 +109,7 @@ class ParseArgsTestCase(unittest.TestCase):
self.assertEqual(ns.verbose, 0)
def test_slow(self):
- for opt in '-o', '--slow':
+ for opt in '-o', '--slowest':
with self.subTest(opt=opt):
ns = libregrtest._parse_args([opt])
self.assertTrue(ns.print_slow)
@@ -661,9 +661,9 @@ class ArgsTestCase(BaseTestCase):
self.check_executed_tests(output, test, omitted=test)
def test_slow(self):
- # test --slow
+ # test --slowest
tests = [self.create_test() for index in range(3)]
- output = self.run_tests("--slow", *tests)
+ output = self.run_tests("--slowest", *tests)
self.check_executed_tests(output, tests)
regex = ('10 slowest tests:\n'
'(?:%s: [0-9]+\.[0-9]+s\n){%s}'
@@ -671,15 +671,15 @@ class ArgsTestCase(BaseTestCase):
self.check_line(output, regex)
def test_slow_interrupted(self):
- # Issue #25373: test --slow with an interrupted test
+ # Issue #25373: test --slowest with an interrupted test
code = TEST_INTERRUPTED
test = self.create_test("sigint", code=code)
for multiprocessing in (False, True):
if multiprocessing:
- args = ("--slow", "-j2", test)
+ args = ("--slowest", "-j2", test)
else:
- args = ("--slow", test)
+ args = ("--slowest", test)
output = self.run_tests(*args, exitcode=1)
self.check_executed_tests(output, test, omitted=test)
regex = ('10 slowest tests:\n')