Eric V. Smith <e...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46081>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to