]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113975)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Jan 2024 03:23:52 +0000 (04:23 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 03:23:52 +0000 (03:23 +0000)
commit96eff8c1502298194802029f8d129ba0db1eec63
tree5cf389c62abd88838b96dc28f1a62d86cb46f397
parent535b1dedb3fd374fc22ade339f860ca66a7292b7
[3.11] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113975)

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]