Skip to content

gh-88496: IDLE - fix another test on macOS - #104075

Merged
terryjreedy merged 1 commit into
python:mainfrom
terryjreedy:update2
May 2, 2023
Merged

terryjreedy merged 1 commit into
python:mainfrom
terryjreedy:update2

Conversation

@terryjreedy

@terryjreedy terryjreedy commented May 2, 2023 •

Copy link
Copy Markdown
Member

Needed for Catalina: test_sidebar add 'idletasks' and skip assert.

Needed for Catalina: test_sidebar add 'idletasks' and skip assert.
@terryjreedy terryjreedy self-assigned this May 2, 2023
@bedevere-bot bedevere-bot added the tests Tests in the Lib/test dir label May 2, 2023
@terryjreedy
terryjreedy enabled auto-merge (squash) May 2, 2023 02:28
@terryjreedy
terryjreedy merged commit 690df4c into python:main May 2, 2023
@miss-islington

ghost commented May 2, 2023

Copy link
Copy Markdown
Contributor

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

@terryjreedy terryjreedy added needs backport to 3.11 only security fixes and removed needs backport to 3.11 only security fixes labels May 2, 2023
@miss-islington

ghost commented May 2, 2023

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

ghost commented May 2, 2023

Copy link
Copy Markdown

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

sidebar.canvas.event_generate('<MouseWheel>', x=0, y=0, delta=delta)
yield
self.assertIsNone(text.dlineinfo(text.index(f'{last_lineno}.0')))
if sys.platform != 'darwin': # .update_idletasks() does not work.

ghost May 2, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ordinarily I would ask if this test should continue to run on XQuartz if the problem is only on Aqua:

Suggested change
if sys.platform != 'darwin': # .update_idletasks() does not work.
if text._windowingsystem != 'aqua': # .update_idletasks() does not work.

But this test was already failing on Aqua and XQuartz due to incorrectly negative delta. So this failure may have nothing to do with .update_idletasks(), and the test should not be skipped on Aqua or XQuartz. See #103820, #103821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants