mirror of
https://github.com/python/cpython.git
synced 2025-11-08 01:21:42 +00:00
[3.11] gh-88496: Fix IDLE test hang on macOS (GH-104025) (#104027)
gh-88496: Fix IDLE test hang on macOS (GH-104025)
Replace widget.update() with widget.update_idletasks in two places.
(cherry picked from commit 4b27972f5f)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
2be3656855
commit
2e5f1a1259
3 changed files with 3 additions and 2 deletions
|
|
@ -310,7 +310,7 @@ def recolorize_main(self):
|
||||||
# crumb telling the next invocation to resume here
|
# crumb telling the next invocation to resume here
|
||||||
# in case update tells us to leave.
|
# in case update tells us to leave.
|
||||||
self.tag_add("TODO", next)
|
self.tag_add("TODO", next)
|
||||||
self.update()
|
self.update_idletasks()
|
||||||
if self.stop_colorizing:
|
if self.stop_colorizing:
|
||||||
if DEBUG: print("colorizing stopped")
|
if DEBUG: print("colorizing stopped")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ def write(self, s, tags=(), mark="insert"):
|
||||||
assert isinstance(s, str)
|
assert isinstance(s, str)
|
||||||
self.text.insert(mark, s, tags)
|
self.text.insert(mark, s, tags)
|
||||||
self.text.see(mark)
|
self.text.see(mark)
|
||||||
self.text.update()
|
self.text.update_idletasks()
|
||||||
return len(s)
|
return len(s)
|
||||||
|
|
||||||
def writelines(self, lines):
|
def writelines(self, lines):
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Fix IDLE test hang on macOS.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue