This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients kristjan.jonsson
Date 2009-06-12.21:43:11
SpamBayes Score 0.0381903
Marked as misclassified No
Message-id <1244842994.31.0.225778913715.issue6275@psf.upfronthosting.co.za>
In-reply-to
Content
It can be useful, after a unittest.assertRaises() or assertRaisesRegexp() 
to be able to take a closer look at the exception that was raised.
To this end, I propose returning the caught exception from these methods.

Additionally, the context manager involved with keep the caught exception 
in its exc_value member after it has been successfully thrown (and 
matched)
History
Date User Action Args
2009-06-12 21:43:14kristjan.jonssonsetrecipients: + kristjan.jonsson
2009-06-12 21:43:14kristjan.jonssonsetmessageid: <1244842994.31.0.225778913715.issue6275@psf.upfronthosting.co.za>
2009-06-12 21:43:12kristjan.jonssonlinkissue6275 messages
2009-06-12 21:43:12kristjan.jonssoncreate