This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2016年12月12日 18:15 by xiang.zhang, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| 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) * (Python committer) | 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 -T usage: 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 -l usage: 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 condition 229: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) * (Python committer) | 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) * (Python committer) | Date: 2016年12月19日 10:22 | |
test-command-line-j0-with-test.patch LGTM. |
|||
| msg283624 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2016年12月19日 14:15 | |
New changeset cf564121f9f0 by Xiang Zhang in branch '3.5': Issue #28950: Disallow -j0 combined with -T/-l/-M in regrtest. https://hg.python.org/cpython/rev/cf564121f9f0 New changeset 692834062e80 by Xiang Zhang in branch '3.6': Issue #28950: Disallow -j0 combined with -T/-l in regrtest. https://hg.python.org/cpython/rev/692834062e80 New changeset 3b4d00e20694 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) * (Python committer) | 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 | |