Re: [Python-Dev] Python Language Summit at PyCon: Agenda

2013年3月04日 16:27:19 -0800

On 4 Mar 2013, at 19:26, Berker Peksağ <[email protected]> wrote:
> On Mon, Mar 4, 2013 at 9:14 PM, Barry Warsaw <[email protected]> wrote:
>> On Mar 04, 2013, at 07:41 PM, Antoine Pitrou wrote:
>> 
>>>> $ python -m unittest discover
>>>> $ python setup.py test
>>>> $ python setup.py nosetests
>>>> $ python -m nose test
>>>> $ nosetests-X.Y
>>>> 
>>>> Besides having a multitude of choices, there's almost no way to
>>>> automatically discover (e.g. by metadata inspection or some such) how to
>>>> invoke the tests. You're often lucky if there's a README.test and it's
>>>> still accurate.
>>> 
>>> I hope we can have a "pytest" utility that does the right thing in 3.4 :-)
>>> Typing "python -m unittest discover" is too cumbersome.
>> 
>> Where is this work being done (e.g. is there a PEP)?
> 
> There is an open issue on the tracker: http://bugs.python.org/issue14266
> 
Indeed, and unittest2 (the backport) which has to work with Python 2.6 (where 
"python -m package_name" doesn't work) has "unit2" as a shortcut. So it has an 
advantage over the standard library version here.
I'd like to see pyunit as a short-cut for "python -m unittest discover", with a 
"pyunit-3.x" variant too. 
Barry objects that Linux distributions won't want to support all of these, 
which is frankly their problem.
Michael
> --Berker
> _______________________________________________
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to