[docs] [issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

R. David Murray report at bugs.python.org
Sun Mar 11 15:28:39 EDT 2018

R. David Murray <rdmurray at bitdance.com> added the comment:

The implementation is literally that no non-keyword arguments other than the exception are given.  If any keyword arguments other than msg are given, you get a warning. To say just "no callable" would be about as confusing as the 'and possibly' given the documented prototype, since in fact any non-keyword argument will be assumed to be the callable. So the text is correct as written, and I'm not sure how one would make it clearer and still be technically correct.  But further suggestions are welcome.

nosy: +r.david.murray

Python tracker <report at bugs.python.org>

More information about the docs mailing list