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


Groups > comp.lang.python > #25430 > unrolled thread

Re: assertraises behaviour

Started byPeter Otten <__peter__@web.de>
First post2012-07-16 19:27 +0200
Last post2012-07-16 19:27 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: assertraises behaviour Peter Otten <__peter__@web.de> - 2012-07-16 19:27 +0200

#25430 — Re: assertraises behaviour

FromPeter Otten <__peter__@web.de>
Date2012-07-16 19:27 +0200
SubjectRe: assertraises behaviour
Message-ID<mailman.2182.1342459676.4697.python-list@python.org>
andrea crotti wrote:

> Good thanks, but there is something that implements this behaviour..
> For example nose runs all the tests, and if there are failures it goes
> on and shows the failed tests only in the end, so I think it is
> possible to achieve somehow, is that correct?

No, I don't see how the code you gave above can fail with an OSError. 

Can you give an example that produces the desired behaviour with nose? Maybe 
we can help you translate it to basic unittest.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web