[issue46972] Documentation: Reference says AssertionError is raised by `assert`, but not all AssertionErrors are.
Serhiy Storchaka
report at bugs.python.org
Thu Mar 10 07:40:35 EST 2022
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I concur with Eric. The existing documentation looks pretty clear to me. Any exception can be raised explicitly, no need to repeat this.
And unittest.TestCase methods do not raise AssertionError. They raise TestCase.failureException, which by default is set to AssertionError. It is specified in the corresponding module documentation.
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46972>
_______________________________________
More information about the Python-bugs-list
mailing list