[New-bugs-announce] [issue14861] (Patch included) Make ./python -m test work to run test suite in Python 2.7
report at bugs.python.org
Sun May 20 05:56:52 CEST 2012
New submission from Marc Abramowitz <msabramo at gmail.com>:
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.
title: (Patch included) Make ./python -m test work to run test suite in Python 2.7
versions: Python 2.7
Added file: http://bugs.python.org/file25648/python2.7_test.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce