Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43087
| From | Terry Jan Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: The usage of -m option of python |
| Date | 2013-04-08 14:47 -0400 |
| References | <CABrM6wkuKu9XSbk4JKpEvX4Dfh=n2UKB4UmaRSTyV45Ezd2mYQ@mail.gmail.com> <mailman.3484.1363662214.2939.python-list@python.org> <5162d932$0$6060$e4fe514c@dreader36.news.xs4all.nl> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.299.1365446873.3114.python-list@python.org> (permalink) |
On 4/8/2013 10:50 AM, Albert van der Horst wrote: > In article <mailman.3484.1363662214.2939.python-list@python.org>, > Terry Reedy <tjreedy@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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: The usage of -m option of python Terry Reedy <tjreedy@udel.edu> - 2013-03-18 23:03 -0400
Re: The usage of -m option of python albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-08 14:50 +0000
Re: The usage of -m option of python Terry Jan Reedy <tjreedy@udel.edu> - 2013-04-08 14:47 -0400
csiph-web