[Python-Dev] assertRaises (original) (raw)
Jonathan Lange jml at mumak.net
Fri Jul 18 07:50:06 CEST 2008
- Previous message: [Python-Dev] assertRaises
- Next message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
jml
- Previous message: [Python-Dev] assertRaises
- Next message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]