[issue46081] Document the msg argument for assertRaises

Eric V. Smith report at bugs.python.org
Wed Dec 15 08:09:13 EST 2021


Eric V. Smith <eric at trueblade.com> added the comment:

The documentation at https://docs.python.org/3/library/unittest.html says "All the assert methods accept a msg argument that, if specified, is used as the error message on failure (see also longMessage). Note that the msg keyword argument can be passed to assertRaises(), assertRaisesRegex(), assertWarns(), assertWarnsRegex() only when they are used as a context manager."

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46081>
_______________________________________


More information about the Python-bugs-list mailing list