Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62941
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'exception,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'jan': 0.12; 'itself.': 0.14; 'command-line': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nose': 0.16; 'roy': 0.16; 'skips': 0.16; 'language': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'wed,': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'fairly': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'rest': 0.29; 'am,': 0.29; 'raise': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'assert': 0.31; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'raising': 0.36; 'subject:?': 0.36; 'sure': 0.39; 'either': 0.39; 'such': 0.63; 'smith': 0.68; 'confusing': 0.84; 'to:none': 0.92; 'imagine': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=JCtNqLtr9HonmJM+VbfBxvrWbqgazSIqpTbhKi3Mg68=; b=XQehhRoQRVUWm/ZX55nCIQ0fTj9zTUvpPKmIEQk/lVzuNHzlthCXiBKcbqyYn1GIQp pGEiI2XjsQMyfJyEM4umJ+JW3rrbs7NtTcfsaruDMenGNt64aWfuElFyv7U+idVoVU2J LqESVEUvCJHbcsrudy/10O6UHHNN5wOBsCVRhesHR4XYWNeUe/HkR9PJ2EJNholA9nPx 4t17Bzvsl6WX7r2pR+tjbwC8Bu2z+s/V3TH2jOXr06WUak9vci1F2asfLnwu3LneJ/oU 3q3rClQbzISyzS4CzZSnmvCFb67nghwgVrM/zxAQKeY8tPFqsQ3Z0KZouJe53ppA/pUs k1bQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.108.194 with SMTP id hm2mr79425078pbb.22.1388535297768; Tue, 31 Dec 2013 16:14:57 -0800 (PST) |
| In-Reply-To | <l9v02l$a91$1@panix2.panix.com> |
| References | <l9v02l$a91$1@panix2.panix.com> |
| Date | Wed, 1 Jan 2014 11:14:57 +1100 |
| Subject | Re: What does --no-skip do in nose? |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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.4766.1388535625.18130.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1388535625 news.xs4all.nl 2879 [2001:888:2000:d::a6]:58047 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62941 |
Show key headers only | View raw
On Wed, Jan 1, 2014 at 4:49 AM, Roy Smith <roy@panix.com> wrote: >> from nose import SkipTest >> def test_skip(): >> raise SkipTest >> assert 0 > > What's confusing is, if I use --no-skip, it STILL skips the test: > I don't know nosetests, but I'm fairly sure it's not going to be mangling the Python language itself. Once you say "raise", the rest of the code isn't going to run. If you were calling "skip_test()", then I could imagine it either raising SkipTest or not based on a command-line parameter, but if there's no such function and you directly raise the exception, there's not a lot else Python can do. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What does --no-skip do in nose? roy@panix.com (Roy Smith) - 2013-12-31 12:49 -0500 Re: What does --no-skip do in nose? Chris Angelico <rosuav@gmail.com> - 2014-01-01 11:14 +1100 Re: What does --no-skip do in nose? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-31 20:50 -0500
csiph-web