diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-03 05:35:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 05:35:19 (GMT) |
commit | 48058050cee5f6600150392100c162f223b4317f (patch) | |
tree | 09f6a1d4b0fe6a28f411a81021c46bf7e99cea77 /Lib/idlelib/tooltip.py | |
parent | ebe709dc1d7c1f9f07dc7d77e53674d2500b223e (diff) | |
download | cpython-48058050cee5f6600150392100c162f223b4317f.zip cpython-48058050cee5f6600150392100c162f223b4317f.tar.gz cpython-48058050cee5f6600150392100c162f223b4317f.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.
(cherry picked from commit 132acaba5a7f01373ca624b1a5975b190fe866f5)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Diffstat (limited to 'Lib/idlelib/tooltip.py')
-rw-r--r-- | Lib/idlelib/tooltip.py | 8 |
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() |