summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/tooltip.py
diff options
context:
space:
mode:
authorTal Einat <taleinat+github@gmail.com>2019-09-03 05:17:00 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-09-03 05:17:00 (GMT)
commit132acaba5a7f01373ca624b1a5975b190fe866f5 (patch)
tree2a21aebaf35b02978b489318dd3405944b9ee8a7 /Lib/idlelib/tooltip.py
parentefa3b51fd060352cc6220b27a1026e4d4d5401bd (diff)
downloadcpython-132acaba5a7f01373ca624b1a5975b190fe866f5.zip
cpython-132acaba5a7f01373ca624b1a5975b190fe866f5.tar.gz
cpython-132acaba5a7f01373ca624b1a5975b190fe866f5.tar.bz2
bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
Diffstat (limited to 'Lib/idlelib/tooltip.py')
-rw-r--r--Lib/idlelib/tooltip.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/tooltip.py b/Lib/idlelib/tooltip.py
index f54ea36..6965826 100644
--- a/Lib/idlelib/tooltip.py
+++ b/Lib/idlelib/tooltip.py
@@ -75,7 +75,7 @@ class TooltipBase(object):
if tw:
try:
tw.destroy()
- except TclError:
+ except TclError: # pragma: no cover
pass
@@ -103,8 +103,8 @@ class OnHoverTooltipBase(TooltipBase):
def __del__(self):
try:
self.anchor_widget.unbind("<Enter>", self._id1)
- self.anchor_widget.unbind("<Leave>", self._id2)
- self.anchor_widget.unbind("<Button>", self._id3)
+ self.anchor_widget.unbind("<Leave>", self._id2) # pragma: no cover
+ self.anchor_widget.unbind("<Button>", self._id3) # pragma: no cover
except TclError:
pass
super(OnHoverTooltipBase, self).__del__()
@@ -137,7 +137,7 @@ class OnHoverTooltipBase(TooltipBase):
"""hide the tooltip"""
try:
self.unschedule()
- except TclError:
+ except TclError: # pragma: no cover
pass
super(OnHoverTooltipBase, self).hidetip()