[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

Tal Einat report at bugs.python.org
Wed Jun 13 15:33:29 EDT 2018


Tal Einat <taleinat at gmail.com> added the comment:

Attaching coverage report for tooltip.py.

The uncovered lines are required to avoid exceptions when closing a windows with a tooltip shown.  These are not currently reproduced by test_tooltip.py because my attempts to exercise them in automated tests have all failed so far.

The TclError exceptions are reproduced by the htest in tooltip.py.  The ValueError exception, however, I've only seen happen when actually running IDLE, since it is raised by the MultiCall module.

IMO it's not worth the effort to achieve 100% automated test coverage here.  It's Terry's decision to make, though.

----------
Added file: https://bugs.python.org/file47641/Coverage for Lib_idlelib_tooltip.py.png

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


More information about the Python-bugs-list mailing list