assertraises behaviour

Peter Otten __peter__ at
Mon Jul 16 19:27:45 CEST 2012

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.

More information about the Python-list mailing list