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 denversc, kristjan.jonsson, michael.foord
Date 2010-08-13.18:56:00
SpamBayes Score 9.154035e-08
Marked as misclassified No
Message-id <1281725762.45.0.804981323366.issue9587@psf.upfronthosting.co.za>
In-reply-to
Content
That was a bit abrupt, want't it?  Denver is well aware of this and said: 
"but sometimes using the context manager approach adds unnecessary bloat to already long-winded unit tests."

I happen to agree with him and don't see why we can't discuss this some.  We never did discuss this fully in issue 6275, I just tempered my patch a bit to at least get something done.

I don't think this should be rejected out of hand simply because TBDFL said that its an "'odd' API for a unittest assert method".  assertRaises already return a context manager if called without a callable (an odd api?), and it can just as well return an exception if called _with_ a callable.
History
Date User Action Args
2010-08-13 18:56:02kristjan.jonssonsetrecipients: + kristjan.jonsson, michael.foord, denversc
2010-08-13 18:56:02kristjan.jonssonsetmessageid: <1281725762.45.0.804981323366.issue9587@psf.upfronthosting.co.za>
2010-08-13 18:56:01kristjan.jonssonlinkissue9587 messages
2010-08-13 18:56:00kristjan.jonssoncreate