[issue26702] A better assert statement

Ammar Askar report at bugs.python.org
Sun Mar 28 23:22:25 EDT 2021


Ammar Askar <ammar at ammaraskar.com> added the comment:

Just a note and possible design inspiration, pytest has pretty assertions like this to allowing you to write unit tests purely with the assert statement and not unittest's special `assert...` methods: https://docs.pytest.org/en/stable/example/reportingdemo.html#tbreportdemo

----------
nosy: +ammar2

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


More information about the Python-bugs-list mailing list