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 2012年05月20日 03:56 by Marc.Abramowitz, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| python2.7_test.patch | Marc.Abramowitz, 2012年05月20日 03:56 | 2 line patch to make "./python -m test" work on 2.7 | review | |
| Messages (3) | |||
|---|---|---|---|
| msg161180 - (view) | Author: Marc Abramowitz (Marc.Abramowitz) * | Date: 2012年05月20日 03:56 | |
Currently, the devguide (http://docs.python.org/devguide/) mentions two sets of commands for running the CPython test suite: * For Python 3, one uses: ./python -m test * For Python 2.7, one must use: ./python -m test.regrtest because ./python -m test fails with an error:No module named test.__main__; 'test' is a package and cannot be directly executed If you take these two variations and multiply by the 3 variations of "python" command required depending on the OS (Windows, OS X, or other), then there are 6 permutations. I would say that this doesn't exactly encourage newcomers to CPython to contribute. To take away a bit of the complexity, I have an extremely simple patch that adds one two line file to make ./python -m test work on 2.7. |
|||
| msg161188 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2012年05月20日 07:30 | |
This is a new feature, not a bug fix, so it can't be added to 2.7. Newcomers to CPython don't need to bother with 2.7 in general, which can reduce the combination in half. If they want to use something that works in all versions, they can use '-m test.regrtest'. |
|||
| msg161189 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2012年05月20日 07:33 | |
Follow-up: I still use 'python Lib/test/regrtest.py'. This works in all versions since Python 2.0 (with the right Python binary), and supports tab completion in the shell. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:30 | admin | set | github: 59066 |
| 2012年05月20日 07:33:35 | loewis | set | messages: + msg161189 |
| 2012年05月20日 07:30:37 | loewis | set | status: open -> closed nosy: + loewis messages: + msg161188 resolution: rejected |
| 2012年05月20日 04:07:29 | ezio.melotti | set | nosy:
+ ezio.melotti type: enhancement stage: patch review title: (Patch included) Make ./python -m test work to run test suite in Python 2.7 -> Make ./python -m test work to run test suite in Python 2.7 |
| 2012年05月20日 03:56:51 | Marc.Abramowitz | create | |