anatoly techtonik added the comment:

> The documentation already covers that "python -m unittest test_module" 
> usage works only in 2.7+.
>
> "Changed in version 2.7: In earlier versions it was only possible to
> run individual test methods and not modules or classes."

But the command line help says otherwise:

$ python -m unittest -h
Usage: unittest.py [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output

Examples:
  unittest.py                               - run default set of tests
  unittest.py MyTestSuite                   - run suite 'MyTestSuite'
  unittest.py MyTestCase.testSomething      - run MyTestCase.testSomething
  unittest.py MyTestCase                    - run all 'test*' test methods
                                               in MyTestCase

$ python --version
Python 2.6.6

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6514>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to