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


Groups > comp.lang.python > #76998

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!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'output': 0.05; 'default.': 0.09; 'indicates': 0.09; 'unittest': 0.09; 'python': 0.11; '2.7': 0.14; '(everything': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'nose': 0.16; 'subclass': 0.16; 'subject:after': 0.16; 'subject:continue': 0.16; 'sender:addr:gmail.com': 0.17; 'slightly': 0.19; 'appears': 0.22; 'skip': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'plain': 0.33; 'subject:from': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'subject:?': 0.36; 'should': 0.36; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'how': 0.40; 'simple': 0.61; 'first': 0.61; 'capable': 0.67; 'abandon': 0.84; 'mind...': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=v0u25WWsMUmG5p18DC/W2NzK/nY/070pp3vgU8+YMyI=; b=dSuPpDxFNag6sr6IlB4Ub0RMU2Z1rYDmpqGUXGsfUckl8jBFA7nbV35+DbN3wqIdNl h4yEw2oBVMHC95BP4UZCEVP5AHLqk/vTFHCIkzZ3ATMqfwze3zP9QkZZGCXeXvOzEk0B ZP7qWEGYwG2grh/6nYtKGpYgfUnkDOsPfNsDgqyYLL/UuqRdC5BHs6sBtbfywZ3I0MWg 2W+NFMMj9cYMv7svMepZ7+NQKRt1ug3pCElPhnmxh7wDcCIINaT+N52ubG1gZ7v8mOfP d5PhFHivvMtAZm9UslvJfGgSF8vmrkZZZecu04IEhyDn9f082+5UctznA8wvcY0qKtYX u/5w==
MIME-Version 1.0
X-Received by 10.50.39.8 with SMTP id l8mr17432106igk.13.1408991807728; Mon, 25 Aug 2014 11:36:47 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <CANc-5UwXqeSbzgBQbWXEvJu-3j1bY+RU76Hz0w36_QaGt+RBaA@mail.gmail.com>
References <CANc-5UwXqeSbzgBQbWXEvJu-3j1bY+RU76Hz0w36_QaGt+RBaA@mail.gmail.com>
Date Mon, 25 Aug 2014 13:36:47 -0500
X-Google-Sender-Auth bL6XoYq6m7wq-r3RskUReZUxt-8
Subject Re: Switching from nose to unittest2 - how to continue after an error?
From Skip Montanaro <skip@pobox.com>
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.13428.1408991814.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408991814 news.xs4all.nl 2867 [2001:888:2000:d::a6]:32881
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76998

Show key headers only | View raw


> 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

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


Thread

Re: Switching from nose to unittest2 - how to continue after an error? Skip Montanaro <skip@pobox.com> - 2014-08-25 13:36 -0500

csiph-web