Michael Foord <mich...@voidspace.org.uk> added the comment:

Providing access to the exception on the context manager was *precisely* to 
meet the use case of wanting to make assertions about the exception. I tend to 
agree with Guido that having one of the asserts return something is a bit odd, 
but irrespective of that I don't think we should have two ways of doing exactly 
the same thing. 

In general I find that the with statement version of assertRaises looks a lot 
better than the old way of calling it, so I guess I also disagree that it is 
"overkill" or adds bloat.

Sorry guys.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9587>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to