]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113903: Fix an IDLE configdialog test (#113973)
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 12 Jan 2024 03:10:00 +0000 (22:10 -0500)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 03:10:00 +0000 (22:10 -0500)
commitc4992f4106aa509375f5beca8dc044a7f6c36a72
tree2f5d898aa82718d0ceb9265dc99d360613ef3a52
parentefa738e862da26f870ca659b01ff732649f400a7
gh-113903: Fix an IDLE configdialog test (#113973)

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.
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]