Kaydet (Commit) 772bf2ed authored tarafından Xiang Zhang's avatar Xiang Zhang

Issue #28950: Disallow -j0 combined with -T/-l in regrtest.

......@@ -301,9 +301,9 @@ def _parse_args(args, **kwargs):
if ns.single and ns.fromfile:
parser.error("-s and -f don't go together!")
if ns.use_mp and ns.trace:
if ns.use_mp is not None and ns.trace:
parser.error("-T and -j don't go together!")
if ns.use_mp and ns.findleaks:
if ns.use_mp is not None and ns.findleaks:
parser.error("-l and -j don't go together!")
if ns.failfast and not (ns.verbose or ns.verbose3):
parser.error("-G/--failfast needs either -v or -W")
......
File mode changed from 100644 to 100755
......@@ -226,6 +226,8 @@ class ParseArgsTestCase(unittest.TestCase):
self.checkError([opt, 'foo'], 'invalid int value')
self.checkError([opt, '2', '-T'], "don't go together")
self.checkError([opt, '2', '-l'], "don't go together")
self.checkError([opt, '0', '-T'], "don't go together")
self.checkError([opt, '0', '-l'], "don't go together")
def test_coverage(self):
for opt in '-T', '--coverage':
......
......@@ -66,6 +66,9 @@ Windows
Tests
-----
- Issue #28950: Disallow -j0 to be combined with -T/-l in regrtest
command line arguments.
- Issue #28683: Fix the tests that bind() a unix socket and raise
PermissionError on Android for a non-root user.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment