summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-12-19 05:26:11 (GMT)
committerGitHub <noreply@github.com>2023-12-19 05:26:11 (GMT)
commitfa9ba02353d79632983b9fe24da851894877e342 (patch)
tree8e7d9cc37a2410d6e227f8752e9533f8593c8e90 /Lib/idlelib
parentc895403de0b1c301aeef86921348c13f608257dc (diff)
downloadcpython-fa9ba02353d79632983b9fe24da851894877e342.zip
cpython-fa9ba02353d79632983b9fe24da851894877e342.tar.gz
cpython-fa9ba02353d79632983b9fe24da851894877e342.tar.bz2
gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)
Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/News3.txt2
-rw-r--r--Lib/idlelib/idle_test/test_editor.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt
index 4fba416..308865d 100644
--- a/Lib/idlelib/News3.txt
+++ b/Lib/idlelib/News3.txt
@@ -4,6 +4,8 @@ Released on 2024-10-xx
=========================
+gh-113269: Fix test_editor hang on macOS Catalina.
+
gh-112939: Fix processing unsaved files when quitting IDLE on macOS.
Patch by Ronald Oussoren and Christopher Chavez.
diff --git a/Lib/idlelib/idle_test/test_editor.py b/Lib/idlelib/idle_test/test_editor.py
index 9296a6d..0dfe2f3 100644
--- a/Lib/idlelib/idle_test/test_editor.py
+++ b/Lib/idlelib/idle_test/test_editor.py
@@ -95,7 +95,7 @@ class GetLineIndentTest(unittest.TestCase):
def insert(text, string):
text.delete('1.0', 'end')
text.insert('end', string)
- text.update() # Force update for colorizer to finish.
+ text.update_idletasks() # Force update for colorizer to finish.
class IndentAndNewlineTest(unittest.TestCase):