]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113273)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Dec 2023 05:42:59 +0000 (06:42 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 05:42:59 +0000 (05:42 +0000)
gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271)

Hangs on installed 3.13.0a2 on macOS Catalina.
Behavior on installed 3.12.1 and 3.11.7 is unknown.
(cherry picked from commit fa9ba02353d79632983b9fe24da851894877e342)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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 4c05ddee983991493ef5f98ed28b07f55a3f4134..cf6a97bcf5f9504d35e8e512ea6f75f312ef20de 100644 (file)
@@ -4,6 +4,8 @@ Released after 2022-10-24
 =========================
 
 
+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.