Terry J. Reedy <tjre...@udel.edu> added the comment:
The current behavior is not a bug as it follows documented behavior. In the absence of any use for returning values from test functions, I agree that we should do the simple thing and raise ValueError (I checked and did not find anything like a UnittestError.) That would add minimal time to testing. ---------- nosy: +terry.reedy title: unittest: Generator test methods will always be marked as passed -> unittest: deprecate test methods returning non-None values type: behavior -> enhancement versions: +Python 3.10 -Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41322> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com