[Python-Dev] assertRaises

Jonathan Lange jml at mumak.net
Fri Jul 18 07:50:06 CEST 2008

On Fri, Jul 18, 2008 at 8:51 AM, Mark Hammond <mhammond at skippinet.com.au> wrote:
>> >> Let's just make assertRaises return the exception instance, it seems
>> >> like it feels the need correctly.
>> >
>> > and I meant "fills", not "feels", obviously...
>> +1 : enriching the existing method in a way that's perfectly
>> transparent and innocuous to all existing uses _feels_ right, because
>> it's more practical.
> For the record, and primarily to give the champion of this proposal a little
> more resolve the run the python-dev gauntlet on this issue given the recent
> - err - spirited discussions, I'm also strongly +1 on this idea.

I've got code and tests for this. I'll file a patch on the tracker as
soon as I get the chance -- Internet is dicey at the moment.


More information about the Python-Dev mailing list