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>
=========================
+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.
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):
--- /dev/null
+Fix test_editor hang on macOS Catalina.