Steve Purcell <[EMAIL PROTECTED]> added the comment:

I like this change, since assertRaises can be a bit messy when passing it 
a local function.
 
I'd suggest modifying the patch such that the AssertRaisesContext class is 
also used when callableObj is provided, which would eliminate the 
duplication of the code that checks for exceptions.

----------
nosy: +purcell

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to