[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

Brian Curtin report at bugs.python.org
Tue Mar 15 14:17:16 CET 2011


Brian Curtin <brian at python.org> added the comment:

I showed robquad how to do the review stuff at PyCon but I forgot about the publish part. Robbie, if you hit "Publish + Mail Comments" near the top of the page after you've left comments, it'll send them out.


What he noticed was that changing to callable_obj in the assertRaises signature could break anyone who had been using callableObj as a named argument. Although it isn't explicitly documented, it's a named argument that someone is probably using. As for standardizing, it's probably best to match the general format of the library which is camelCase, and change the internal uses rather than a public method signature.

----------
nosy: +brian.curtin

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10775>
_______________________________________


More information about the Python-bugs-list mailing list