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

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


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

I disagree that the regex version is half-assed though. If all you want
to do is to make assertions about the exception message (the most common
use case in *my* experience) it is enormously convenient.

----------

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


More information about the Python-bugs-list mailing list