[issue22340] Fix Python 3 warnings in Python 2 tests

Terry J. Reedy report at bugs.python.org
Fri Sep 5 20:09:31 CEST 2014


Terry J. Reedy added the comment:

Please just change '1/0' to '1//0'.  Any expression that raises something other than NameError or AttributeError will do. .get_entity evals user code and Idle previously crashed when other exceptions were not caught. Thanks, Serhiy, for catching this.

The other warned code appears to be essential to the corresponding test. I presume Serhiy checked this also.

----------
assignee:  -> haypo
stage:  -> patch review
type:  -> behavior

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


More information about the Python-bugs-list mailing list