summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-05-01 01:36:27 (GMT)
committerGitHub <noreply@github.com>2023-05-01 01:36:27 (GMT)
commit4b27972f5fe816d3616f97f8643d8ad922473ab5 (patch)
tree00bbcc1010a887d869a6716357ea1b6ea429a3cd
parent69bc86cb1aed49db27afc0095e0f4bcd8f1f3983 (diff)
downloadcpython-4b27972f5fe816d3616f97f8643d8ad922473ab5.zip
cpython-4b27972f5fe816d3616f97f8643d8ad922473ab5.tar.gz
cpython-4b27972f5fe816d3616f97f8643d8ad922473ab5.tar.bz2
gh-88496: Fix IDLE test hang on macOS (#104025)
Replace widget.update() with widget.update_idletasks in two places.
-rw-r--r--Lib/idlelib/colorizer.py2
-rw-r--r--Lib/idlelib/outwin.py2
-rw-r--r--Misc/NEWS.d/next/IDLE/2023-04-30-20-01-18.gh-issue-88496.y65vUb.rst1
3 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/colorizer.py b/Lib/idlelib/colorizer.py
index e9f19c1..b4df353 100644
--- a/Lib/idlelib/colorizer.py
+++ b/Lib/idlelib/colorizer.py
@@ -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
diff --git a/Lib/idlelib/outwin.py b/Lib/idlelib/outwin.py
index ac67c90..610031e 100644
--- a/Lib/idlelib/outwin.py
+++ b/Lib/idlelib/outwin.py
@@ -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):
diff --git a/Misc/NEWS.d/next/IDLE/2023-04-30-20-01-18.gh-issue-88496.y65vUb.rst b/Misc/NEWS.d/next/IDLE/2023-04-30-20-01-18.gh-issue-88496.y65vUb.rst
new file mode 100644
index 0000000..4f390d1
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2023-04-30-20-01-18.gh-issue-88496.y65vUb.rst
@@ -0,0 +1 @@
+Fix IDLE test hang on macOS.