Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'preferably': 0.05; '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; 'api': 0.11; 'language.': 0.14; 'mostly': 0.14; 'thread': 0.14; 'changes': 0.15; '"assert",': 0.16; 'benefit.': 0.16; 'nose': 0.16; 'pytest,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:after': 0.16; 'subject:continue': 0.16; 'unfair': 0.16; 'folks': 0.16; 'language': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'appears': 0.22; 'aug': 0.22; 'issue.': 0.22; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'either.': 0.24; 'skip': 0.24; 'stick': 0.24; 'mon,': 0.24; "i've": 0.25; 'compiled': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'possibility': 0.29; 'skip:g 30': 0.30; 'statement': 0.30; "i'm": 0.30; '(which': 0.31; 'code': 0.31; '25,': 0.31; 'assert': 0.31; 'base,': 0.31; 'bunch': 0.31; 'dated': 0.31; 'minor': 0.31; 'there.': 0.32; 'run': 0.32; 'cases': 0.33; 'actual': 0.34; 'subject:from': 0.34; 'problem': 0.35; 'something': 0.35; 'test': 0.35; 'but': 0.35; 'there': 0.35; 'replies': 0.36; 'subject:?': 0.36; 'should': 0.36; 'unit': 0.37; 'list': 0.37; 'others.': 0.38; 'requiring': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'realize': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'gone': 0.61; 'helps': 0.61; 'you.': 0.62; 'our': 0.64; 'more': 0.64; 'different': 0.65; '(that': 0.65; 'charset:windows-1252': 0.65; 'latest': 0.67; 'wish': 0.70; 'obvious': 0.74; 'lack': 0.78; 'plugins': 0.84; 'presumably': 0.84; 'try.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Switching from nose to unittest2 - how to continue after an error? Date: Mon, 25 Aug 2014 21:12:28 +0100 References: 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: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408997567 news.xs4all.nl 2957 [2001:888:2000:d::a6]:47874 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77001 On 25/08/2014 20:54, Skip Montanaro wrote: > On Mon, Aug 25, 2014 at 1:59 PM, Mark Lawrence wrote: >> 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? > > The test cases are run independently of the actual installed code > base, so use of the assert statement is, at best, a minor issue. We > don't use -O where I work either. Certainly, for me, the possibility > that code might get compiled out was outweighed by its convenience. > > The nose folks say nose v1 will no longer be extended, that nose2 is > the future. Alas, the API changed for plugins (which I'm currently > trying unsuccessfully to get working). A couple questions to that list > have so far gone unanswered (granted one of them was today), and > before my questions, the latest thread with any replies was dated Aug > 6. (That indicates to me that the nose group is pretty quiet.) Seeing > that nose2 was mostly unittest2 and no longer having any <2.7 > constraint, I thought I would give it a try. Unfortunately, from my > perspective it appears that the authors of that package mostly came up > with a bunch of different spellings of "assert", requiring a bunch of > tedious unit test changes for no obvious benefit. I realize that is > almost certainly an unfair criticism, that there is more under the > covers, but the lack of support for the assert statement is a problem > for me. > > Skip > There's activity on this list if it helps gmane.comp.python.testing.general I've also seen a reference to tox there. Whatever happened to "There should be one-- and preferably only one --obvious way to do it."? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence