Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62936
| From | roy@panix.com (Roy Smith) |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | What does --no-skip do in nose? |
| Date | 2013-12-31 12:49 -0500 |
| Organization | PANIX -- Public Access Networks Corp. |
| Message-ID | <l9v02l$a91$1@panix2.panix.com> (permalink) |
Environment: Python 2.7.3 nose 1.3.0 Ubuntu 12.04 Linux I'm befuddled about how test skipping, and in particular, --no-skip, is supposed to work in nose. I've got a trivial test file: > from nose import SkipTest > def test_skip(): > raise SkipTest > assert 0 If I run this, it skips the test, as expected: > $ nosetests try.py > S > ---------------------------------------------------------------------- > Ran 1 test in 0.001s > > OK (SKIP=1) What's confusing is, if I use --no-skip, it STILL skips the test: > $ nosetests --no-skip try.py > > ---------------------------------------------------------------------- > Ran 1 test in 0.001s > > OK The only difference is it doesn't print the "S". Am I just mis-understanding what --no-skip is supposed to do?
Back to comp.lang.python | Previous | Next — 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