
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2016-12-12 18:15 byxiang.zhang, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test-command-line-j0.patch | xiang.zhang,2016-12-12 18:15 | review | ||
| test-command-line-j0-with-test.patch | xiang.zhang,2016-12-13 03:15 | review | ||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 552 | closed | dstufft,2017-03-31 16:36 | |
| Messages (6) | |||
|---|---|---|---|
| msg283032 -(view) | Author: Xiang Zhang (xiang.zhang)*![]() | Date: 2016-12-12 18:15 | |
For python test command line arguments, -j is not allowed together with -T/-l (don't know why):[cpython]$ ./python -m test -j4 -Tusage: python -m test [options] [test_name1 [test_name2 ...]]python path/to/Lib/test/regrtest.py [options] [test_name1 [test_name2 ...]]regrtest.py: error: -T and -j don't go together!Pass -h or --help for complete help.[cpython]$ ./python -m test -j4 -lusage: python -m test [options] [test_name1 [test_name2 ...]]python path/to/Lib/test/regrtest.py [options] [test_name1 [test_name2 ...]]regrtest.py: error: -l and -j don't go together!Pass -h or --help for complete help.But -j0 which also spawns multiple progresses fails the check. | |||
| msg283097 -(view) | Author: kumaar.nd (kumaar.nd) | Date: 2016-12-13 11:56 | |
hi,I reviewed the changes of patch set-2.In the test_regrtest.py, instead of adding new condition229:self.checkError([opt, '0', '-T'], "don't go together")230:self.checkError([opt, '0', '-l'], "don't go together")isnt it easier to just tweak and replace the existing 227:self.checkError([opt, '2', '-T'], "don't go together")228:self.checkError([opt, '2', '-l'], "don't go together")with teh above changes?If the suggestion sound naive, this is my first developer review and am new to python too. | |||
| msg283162 -(view) | Author: Xiang Zhang (xiang.zhang)*![]() | Date: 2016-12-14 04:27 | |
Thanks for your review kumaar.nd. :-)As for your suggestion, in this case adding can not be any harder than replacing. And the old cases could represent the truth value. | |||
| msg283603 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2016-12-19 10:22 | |
test-command-line-j0-with-test.patch LGTM. | |||
| msg283624 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2016-12-19 14:15 | |
New changesetcf564121f9f0 by Xiang Zhang in branch '3.5':Issue#28950: Disallow -j0 combined with -T/-l/-M in regrtest.https://hg.python.org/cpython/rev/cf564121f9f0New changeset692834062e80 by Xiang Zhang in branch '3.6':Issue#28950: Disallow -j0 combined with -T/-l in regrtest.https://hg.python.org/cpython/rev/692834062e80New changeset3b4d00e20694 by Xiang Zhang in branch 'default':Issue#28950: Merge 3.6.https://hg.python.org/cpython/rev/3b4d00e20694 | |||
| msg283630 -(view) | Author: Xiang Zhang (xiang.zhang)*![]() | Date: 2016-12-19 16:21 | |
Thanks Victor. 2.7 is not affected since in 2.7 -j0 does not spawn processes. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:40 | admin | set | github: 73136 |
| 2017-03-31 16:36:08 | dstufft | set | pull_requests: +pull_request841 |
| 2016-12-19 16:21:11 | xiang.zhang | set | status: open -> closed versions: - Python 2.7 messages: +msg283630 resolution: fixed stage: patch review -> resolved |
| 2016-12-19 14:15:08 | python-dev | set | nosy: +python-dev messages: +msg283624 |
| 2016-12-19 10:22:51 | vstinner | set | messages: +msg283603 |
| 2016-12-14 04:27:33 | xiang.zhang | set | messages: +msg283162 |
| 2016-12-13 11:56:22 | kumaar.nd | set | nosy: +kumaar.nd messages: +msg283097 |
| 2016-12-13 03:15:07 | xiang.zhang | set | files: +test-command-line-j0-with-test.patch versions: + Python 2.7 |
| 2016-12-12 18:21:48 | xiang.zhang | set | title: regrtest: -j0 fails the check -j are not allowed together with -T/-l -> regrtest: -j0 fails the check -j is not allowed together with -T/-l |
| 2016-12-12 18:21:03 | serhiy.storchaka | set | nosy: +vstinner title: -j0 fails the check -j are not allowed together with -T/-l -> regrtest: -j0 fails the check -j are not allowed together with -T/-l |
| 2016-12-12 18:15:13 | xiang.zhang | create | |