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


Groups > comp.lang.python > #77032

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!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:error': 0.03; 'exit': 0.09; 'function:': 0.09; 'cc:addr:python-list': 0.11; 'failure.': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'hits': 0.16; 'reedy': 0.16; 'subject:after': 0.16; 'subject:continue': 0.16; 'sender:addr:gmail.com': 0.17; 'thanks,': 0.17; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; '25,': 0.31; 'assert': 0.31; 'subject:from': 0.34; 'problem': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; "i'll": 0.36; 'subject:?': 0.36; 'two': 0.37; 'pm,': 0.38; 'expect': 0.39; 'failures': 0.60; 'back': 0.62; 'within': 0.65; 'due': 0.66; 'lack': 0.78; 'failures.': 0.84
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:cc:content-type; bh=6FbI9h6HzLO1xiRNwPS933RBb/sgTu/25GnEaUAg35Q=; b=eb8h54ybMWiuZNiPlCoJ6YOIPCo0lUEHvNpJZOQGYte9v4yhhufyQdgRzYku6UY1CD m772vZ9W7ADikOy8I/ygnQ8QwOwn9oAzCVTYmacMGQwmPX9BmM0vSgK2mD99zHdvsOnt ygxFZbvX0Bx8Q7GIE6Ri2IcZsICnA5EagCPPsT9YLxpkIii2oPZlnEUjVSsA9BXR1cvB HieBBJkVxDA8o+Zh7NrQN3rDZT/uMvTkToaOUKYo6Nlkldz9NO8lGJ4eCTGIDSz3zt5n V2IQtDO/naPhcqgPmXxIOEKvYGQEbe69jeogSA/mTXlMwtHPFMcBriRgH31/qZcSuGsO M4GA==
MIME-Version 1.0
X-Received by 10.50.21.3 with SMTP id r3mr19522620ige.13.1409043304189; Tue, 26 Aug 2014 01:55:04 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <ltgatu$j7u$1@ger.gmane.org>
References <CANc-5UwXqeSbzgBQbWXEvJu-3j1bY+RU76Hz0w36_QaGt+RBaA@mail.gmail.com> <ltgatu$j7u$1@ger.gmane.org>
Date Tue, 26 Aug 2014 03:55:03 -0500
X-Google-Sender-Auth mTONZp_Ac3UA55enm9cBhmVoISc
Subject Re: Switching from nose to unittest2 - how to continue after an error?
From Skip Montanaro <skip@pobox.com>
To Terry Reedy <tjreedy@udel.edu>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
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.13448.1409043312.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1409043312 news.xs4all.nl 2962 [2001:888:2000:d::a6]:45306
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77032

Show key headers only | View raw


On Mon, Aug 25, 2014 at 4:47 PM, Terry Reedy <tjreedy@udel.edu> wrote:
> I know of two ways to collect multiple failures within a test function:

Thanks, but I mean multiple test failures. I fully expect a specific
test to exit when it hits an assertion failure.

I suspect my problem is due to lack of support for the assert
statement by unittest. I'll just go back to nose1 for now.

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-26 03:55 -0500

csiph-web