On 4/8/2013 10:50 AM, Albert van der Horst wrote:
In article <mailman.3484.1363662214.2939.python-l...@python.org>,
Terry Reedy <tjre...@udel.edu> wrote:
On 3/18/2013 5:17 PM, Peng Yu wrote:
Hi,
I don't quite understand how -m option is used. And it is difficult to
search for -m in google. Could anybody provide me with an example on
how to use this option?
python -m test
at a command line runs the regression tests in the test package
python -m test -v test_difflib
runs test.test_difflib in verbose mode.
I get for both :
"/usr/bin/python: test is a package and cannot be directly executed."
What gives?
(Official stable Debian distribution. Python 2.7)
For me, 3.3 is default Python.
Look in the 2.7 doc for 'test' and I believe it will tell you that you
need to write 'test.regrtest'.
tjr
--
http://mail.python.org/mailman/listinfo/python-list