Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9f191a1

Browse filesBrowse files
[3.11] gh-88496: IDLE - fix another test on macOS (GH-104075) (#104076)
gh-88496: IDLE - fix another test on macOS (GH-104075) Needed for Catalina: test_sidebar add 'idletasks' and skip assert. (cherry picked from commit 690df4c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 10db28b commit 9f191a1
Copy full SHA for 9f191a1

File tree

1 file changed

+3
-2
lines changed
Filter options

1 file changed

+3
-2
lines changed

‎Lib/idlelib/idle_test/test_sidebar.py

Copy file name to clipboardExpand all lines: Lib/idlelib/idle_test/test_sidebar.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def setUpClass(cls):
5757
@classmethod
5858
def tearDownClass(cls):
5959
cls.editwin.per.close()
60-
cls.root.update()
60+
cls.root.update_idletasks()
6161
cls.root.destroy()
6262
del cls.text, cls.text_frame, cls.editwin, cls.root
6363

@@ -695,7 +695,8 @@ def test_mousewheel(self):
695695
delta = -1 if sys.platform == 'darwin' else 120
696696
sidebar.canvas.event_generate('<MouseWheel>', x=0, y=0, delta=delta)
697697
yield
698-
self.assertIsNone(text.dlineinfo(text.index(f'{last_lineno}.0')))
698+
if sys.platform != 'darwin': # .update_idletasks() does not work.
699+
self.assertIsNone(text.dlineinfo(text.index(f'{last_lineno}.0')))
699700

700701
# Scroll back down using the <Button-5> event.
701702
sidebar.canvas.event_generate('<Button-5>', x=0, y=0)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.