Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4393
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | skipping one unittest assertion? |
| Date | 2011-05-01 10:13 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-880487.10134901052011@news.panix.com> (permalink) |
Is there any way to skip a single assertion in a unittest test method? I know I can @skip or @expectedFailure the method, but I'm looking for something finer-grain than that. There's one particular assertion in a test method which depends on production code that hasn't been written yet. I could factor that out into its own test methods and @skip that, but it would be cleaner to be able to mark the particular assertion. (using python 2.6, but importing unittest2 from 2.7)
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
skipping one unittest assertion? Roy Smith <roy@panix.com> - 2011-05-01 10:13 -0400
Re: skipping one unittest assertion? Ben Finney <ben+python@benfinney.id.au> - 2011-05-02 00:31 +1000
Re: skipping one unittest assertion? Roy Smith <roy@panix.com> - 2011-05-01 11:55 -0400
Re: skipping one unittest assertion? Ben Finney <ben+python@benfinney.id.au> - 2011-05-02 07:45 +1000
Re: skipping one unittest assertion? "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-05-01 18:14 +0000
Re: skipping one unittest assertion? Roy Smith <roy@panix.com> - 2011-05-01 14:16 -0400
Re: skipping one unittest assertion? Chris Angelico <rosuav@gmail.com> - 2011-05-02 06:51 +1000
csiph-web