assertraises behaviour

Peter Otten __peter__ at web.de
Mon Jul 16 13:27:45 EDT 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