Comment 0 for bug 501174

Revision history for this message
Martin Packman (gz) wrote : Suggest alternative to python -m testtools.run for Python 2.4

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 me mentioned in the documentation.