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


Groups > comp.lang.python > #76999

Re: Switching from nose to unittest2 - how to continue after an error?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'output': 0.05; 'default.': 0.09; 'doctest': 0.09; 'indicates': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'unittest': 0.09; 'python': 0.11; '2.7': 0.14; 'language.': 0.14; '(everything': 0.16; 'nose': 0.16; 'pytest,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subclass': 0.16; 'subject:after': 0.16; 'subject:continue': 0.16; 'language': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'appears': 0.22; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'stick': 0.24; 'source': 0.25; 'compiled': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'newer': 0.30; 'plain': 0.33; 'subject:from': 0.34; 'something': 0.35; 'method': 0.36; 'subject:?': 0.36; 'should': 0.36; 'others.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'simple': 0.61; 'first': 0.61; 'you.': 0.62; 'our': 0.64; 'charset:windows-1252': 0.65; 'capable': 0.67; 'wish': 0.70; 'abandon': 0.84; 'presumably': 0.84; 'mind...': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Switching from nose to unittest2 - how to continue after an error?
Date Mon, 25 Aug 2014 19:59:21 +0100
References <CANc-5UwXqeSbzgBQbWXEvJu-3j1bY+RU76Hz0w36_QaGt+RBaA@mail.gmail.com> <CANc-5UwWVwtae1MQ34nWkGra8h007MccXxyDxnfBGvT52TBqvA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-187-85.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0
In-Reply-To <CANc-5UwWVwtae1MQ34nWkGra8h007MccXxyDxnfBGvT52TBqvA@mail.gmail.com>
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13429.1408993180.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408993180 news.xs4all.nl 2968 [2001:888:2000:d::a6]:38062
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76999

Show key headers only | View raw


On 25/08/2014 19:36, Skip Montanaro wrote:
>> It appears that unittest in Python 2.7 should be capable enough that I
>> can abandon nose in favor of python -m unittest. How do I get it to
>> continue past the first failure? The --help output indicates that a -f
>> flag causes it to "fail fast", however, that appears to be the
>> default. How do I get it to continue after the first failure? FWIW, I
>> am using something slightly newer than Python 2.7.5 (built from source
>> sometime before 2.7.6 was released).
>
> Ugh... Still no simple test_* functions (everything has to be a method
> of a subclass of TestCase)? No support for plain old assert?
>
> *sigh* Never mind...
>
> Skip
>

If you wish to write tests using something that can be compiled out 
please don't let me stop you.  Having said that if nose or even nose2 
works for you why not stick with it?  There's also testfixtures, pytest, 
doctest and presumably others.  Horses for courses?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Switching from nose to unittest2 - how to continue after an error? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-25 19:59 +0100

csiph-web