gh-88496: Fix IDLE test hang on macOS (#104025)

Replace widget.update() with widget.update_idletasks in two places.
This commit is contained in:
Terry Jan Reedy 2023-04-30 21:36:27 -04:00 committed by GitHub
parent 69bc86cb1a
commit 4b27972f5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -310,7 +310,7 @@ class ColorDelegator(Delegator):
# crumb telling the next invocation to resume here
# in case update tells us to leave.
self.tag_add("TODO", next)
self.update()
self.update_idletasks()
if self.stop_colorizing:
if DEBUG: print("colorizing stopped")
return

View file

@ -112,7 +112,7 @@ class OutputWindow(EditorWindow):
assert isinstance(s, str)
self.text.insert(mark, s, tags)
self.text.see(mark)
self.text.update()
self.text.update_idletasks()
return len(s)
def writelines(self, lines):

View file

@ -0,0 +1 @@
Fix IDLE test hang on macOS.