Skip to content

gh-113903: Fix an IDLE configdialog test#113973

Merged
terryjreedy merged 4 commits into
python:mainfrom
terryjreedy:clickit
Jan 12, 2024
Merged

gh-113903: Fix an IDLE configdialog test#113973
terryjreedy merged 4 commits into
python:mainfrom
terryjreedy:clickit

Conversation

@terryjreedy

@terryjreedy terryjreedy commented Jan 12, 2024

Copy link
Copy Markdown
Member

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

Fix an extremely rare failure in test_highlight_target_text_mouse
that happens if a line of the Highlight tab text sample is not
visible.  If so, bbox() in clich_char() returns None and
iteration fails.

Call click_char just once per tag name.
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting core review labels Jan 12, 2024
@terryjreedy terryjreedy added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 12, 2024
@terryjreedy
terryjreedy merged commit c4992f4 into python:main Jan 12, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@terryjreedy
terryjreedy deleted the clickit branch January 12, 2024 03:10
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 12, 2024
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 c4992f4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app

bedevere-app Bot commented Jan 12, 2024

Copy link
Copy Markdown

GH-113974 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 12, 2024
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 c4992f4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Jan 12, 2024
@bedevere-app

bedevere-app Bot commented Jan 12, 2024

Copy link
Copy Markdown

GH-113975 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.11 only security fixes label Jan 12, 2024
terryjreedy added a commit that referenced this pull request Jan 12, 2024
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 c4992f4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
terryjreedy added a commit that referenced this pull request Jan 12, 2024
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 c4992f4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
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.
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
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.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir topic-IDLE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant