[issue6275] let unittest.assertRaises() return the exception object caught

Michael Foord report at bugs.python.org
Sun Jun 14 18:44:14 CEST 2009


Michael Foord <michael at voidspace.org.uk> added the comment:

Well, his comment was made after assertRaises had already been made a
context manager. 

Keeping the exception attached to the context manager is an interesting
suggestion and a less 'surprising' change to the API.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6275>
_______________________________________


More information about the Python-bugs-list mailing list