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, michael.foord
Date 2009-06-14.16:39:46
SpamBayes Score 0.0023627863
Marked as misclassified No
Message-id <1244997588.09.0.629297464793.issue6275@psf.upfronthosting.co.za>
In-reply-to
Content
Guido's comment is out of date.  The assertRaises(exception) already 
returns something:  A context manager.

If we don't want to return the object, how about retainig it in the 
context manager, then?
It is very awkward otherwise to make any kinds of assertions on the thrown 
exceptions.  Using the Regexp variant is rather half-assed.
History
Date User Action Args
2009-06-14 16:39:48kristjan.jonssonsetrecipients: + kristjan.jonsson, michael.foord
2009-06-14 16:39:48kristjan.jonssonsetmessageid: <1244997588.09.0.629297464793.issue6275@psf.upfronthosting.co.za>
2009-06-14 16:39:46kristjan.jonssonlinkissue6275 messages
2009-06-14 16:39:46kristjan.jonssoncreate