]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 19 Dec 2023 05:26:11 +0000 (00:26 -0500)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 05:26:11 +0000 (05:26 +0000)
Hangs on installed 3.13.0a2 on macOS Catalina.
Behavior on installed 3.12.1 and 3.11.7 is unknown.

Lib/idlelib/News3.txt
Lib/idlelib/idle_test/test_editor.py
Misc/NEWS.d/next/IDLE/2023-12-19-00-03-12.gh-issue-113269.lrU-IC.rst [new file with mode: 0644]

index 4fba4165fddab5cb30a7fafaee26f49596a88dd1..308865d968814cea11d819b9b312ca91522bb67e 100644 (file)
@@ -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.
 
index 9296a6d235fbbe3b61c96fe19c6cb91734949330..0dfe2f3c58befadd0e85765cac1c1f29083d26fc 100644 (file)
@@ -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):
diff --git a/Misc/NEWS.d/next/IDLE/2023-12-19-00-03-12.gh-issue-113269.lrU-IC.rst b/Misc/NEWS.d/next/IDLE/2023-12-19-00-03-12.gh-issue-113269.lrU-IC.rst
new file mode 100644 (file)
index 0000000..72e75b7
--- /dev/null
@@ -0,0 +1 @@
+Fix test_editor hang on macOS Catalina.