[issue24237] PEP 479: missing DeprecationWarning when generator_stop is not used
Nick Coghlan
report at bugs.python.org
Fri May 22 08:46:56 CEST 2015
Nick Coghlan added the comment:
The patch mostly looks good to me, but I suggest using "test.support.check_warnings" for the cases where you're checking that the warning is raised as expected: https://docs.python.org/3/library/test.html#test.support.check_warnings
It's slightly simpler than constructing the same logic yourself using warnings.catch_warnings.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24237>
_______________________________________
More information about the Python-bugs-list
mailing list