Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43087

Re: The usage of -m option of python

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'used.': 0.09; 'runs': 0.10; 'python': 0.11; '2.7': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'regression': 0.16; 'subject:usage': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'command': 0.22; '>>>': 0.22; 'example': 0.22; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints- To:1': 0.27; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "skip:' 10": 0.31; 'doc': 0.31; 'option': 0.32; 'quite': 0.32; 'could': 0.34; 'anybody': 0.35; 'test': 0.35; 'hi,': 0.36; 'stable': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'tell': 0.60; 'received:173': 0.61; 'subject:The': 0.64; 'provide': 0.64; 'believe': 0.68; 'default': 0.69; 'article': 0.77; "'test'": 0.84; 'received:fios.verizon.net': 0.84; 'albert': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Jan Reedy <tjreedy@udel.edu>
Subject Re: The usage of -m option of python
Date Mon, 08 Apr 2013 14:47:31 -0400
References <CABrM6wkuKu9XSbk4JKpEvX4Dfh=n2UKB4UmaRSTyV45Ezd2mYQ@mail.gmail.com> <mailman.3484.1363662214.2939.python-list@python.org> <5162d932$0$6060$e4fe514c@dreader36.news.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
In-Reply-To <5162d932$0$6060$e4fe514c@dreader36.news.xs4all.nl>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.299.1365446873.3114.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365446873 news.xs4all.nl 6955 [2001:888:2000:d::a6]:53057
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43087

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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