[issue7859] support "with self.assertRaises(SomeException) as exc:" syntax

Michael Foord report at bugs.python.org
Sun Feb 7 17:52:50 CET 2010


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

Just use the context manager and the exception is available as exc_value.

----------
nosy: +michael.foord
resolution:  -> rejected
stage: needs patch -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list