testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00239
[Bug 501174] Re: document how to use python -m with testtools on python 2.4 (its not pretty)
** Changed in: testtools
Status: Triaged => Fix Committed
** Changed in: testtools
Assignee: (unassigned) => Jonathan Lange (jml)
** Changed in: testtools
Milestone: None => next
--
document how to use python -m with testtools on python 2.4 (its not pretty)
https://bugs.launchpad.net/bugs/501174
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
Status in testtools: Fix Committed
Bug description:
The testtools manual (and makefile) suggest the use of `python -m testtools.run ...` to run test suites. However, dotted modules with the -m switch do not work in Python 2.4:
C:\>python -m testtools.run -h
C:/Python24/python.exe: module testtools.run not found
C:\>python Python24\Lib\site-packages\testtools\run.py -h
usage: python -m testtools.run testspec [testspec...]
Run some tests with the testtools extended API.
For instance, to run the testtools test suite.
$ python -m testtools.run testtools.tests.test_suite
options:
-h, --help show this help message and exit
If there is a good reason for `python -m testtools ...` to not Just Work, then this limitation should at least be mentioned in the documentation.