[issue41322] unittest: Generator test methods will always be marked as passed

Serhiy Storchaka report at bugs.python.org
Fri Jul 17 06:54:03 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I would raser raise error if the test method returns something suspicious, like generator or coroutine. Or maybe if it returns anything except None.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list