[Python-Dev] unittest missing assertNotRaises
Michael Foord
fuzzyman at voidspace.org.uk
Wed Sep 28 13:05:13 CEST 2011
On 27/09/2011 19:59, Laurens Van Houtven wrote:
> Sure, you just *do* it. The only advantage I see in assertNotRaises is
> that when that exception is raised, you should (and would) get a
> failure, not an error.
There are some who don't see the distinction between a failure and an
error as a useful distinction... I'm becoming more sympathetic to that view.
All the best,
Michael
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110928/73768f97/attachment.html>
More information about the Python-Dev
mailing list