]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Jan 2024 03:39:45 +0000 (04:39 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 03:39:45 +0000 (03:39 +0000)
commitd63e4c49d3d1080ff53338fea3b37220161d1891
treef79896ef6bbdaf1c2aa1fb8fcacfa53c76a5f56d
parentd50d074cd981b2ca6d3266865957de092e913a88
[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)

test_configdialog.HighPageTest.test_highlight_target_text_mouse fails
if a line of the Highlight tab text sample is not visible. If so, bbox()
in click_char() returns None and the unpacking iteration fails.

This occurred on a Devuan Linux system. Fix by moving the
'see character' call inside click_char, just before the bbox call.

Also, reduce the click_char calls to just one per tag name and
replace the other nested function with a dict comprehension.
(cherry picked from commit c4992f4106aa509375f5beca8dc044a7f6c36a72)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/News3.txt
Lib/idlelib/idle_test/test_configdialog.py
Misc/NEWS.d/next/IDLE/2024-01-11-21-26-58.gh-issue-113903.__GLlQ.rst [new file with mode: 0644]