[issue15551] Unit tests that return generators silently fail

Michael Foord report at bugs.python.org
Fri Aug 3 22:25:37 CEST 2012


Michael Foord added the comment:

unittest calls test methods to execute tests. Generator functions do nothing (except create a generator) when you call them. Test methods as generators therefore do nothing in unittest.

----------
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15551>
_______________________________________


More information about the Python-bugs-list mailing list