mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #28950: Merge 3.6.
This commit is contained in:
commit
f76df27806
4 changed files with 7 additions and 2 deletions
|
@ -301,9 +301,9 @@ def _parse_args(args, **kwargs):
|
||||||
|
|
||||||
if ns.single and ns.fromfile:
|
if ns.single and ns.fromfile:
|
||||||
parser.error("-s and -f don't go together!")
|
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!")
|
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!")
|
parser.error("-l and -j don't go together!")
|
||||||
if ns.failfast and not (ns.verbose or ns.verbose3):
|
if ns.failfast and not (ns.verbose or ns.verbose3):
|
||||||
parser.error("-G/--failfast needs either -v or -W")
|
parser.error("-G/--failfast needs either -v or -W")
|
||||||
|
|
0
Lib/test/regrtest.py
Normal file → Executable file
0
Lib/test/regrtest.py
Normal file → Executable file
|
@ -226,6 +226,8 @@ class ParseArgsTestCase(unittest.TestCase):
|
||||||
self.checkError([opt, 'foo'], 'invalid int value')
|
self.checkError([opt, 'foo'], 'invalid int value')
|
||||||
self.checkError([opt, '2', '-T'], "don't go together")
|
self.checkError([opt, '2', '-T'], "don't go together")
|
||||||
self.checkError([opt, '2', '-l'], "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):
|
def test_coverage(self):
|
||||||
for opt in '-T', '--coverage':
|
for opt in '-T', '--coverage':
|
||||||
|
|
|
@ -627,6 +627,9 @@ Tools/Demos
|
||||||
Tests
|
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
|
- Issue #28683: Fix the tests that bind() a unix socket and raise
|
||||||
PermissionError on Android for a non-root user.
|
PermissionError on Android for a non-root user.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue