summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_outwin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_outwin.py b/Lib/idlelib/idle_test/test_outwin.py
index d6e85ad..81f4aad 100644
--- a/Lib/idlelib/idle_test/test_outwin.py
+++ b/Lib/idlelib/idle_test/test_outwin.py
@@ -1,6 +1,7 @@
"Test outwin, coverage 76%."
from idlelib import outwin
+import sys
import unittest
from test.support import requires
from tkinter import Tk, Text
@@ -18,6 +19,10 @@ class OutputWindowTest(unittest.TestCase):
root.withdraw()
w = cls.window = outwin.OutputWindow(None, None, None, root)
cls.text = w.text = Text(root)
+ if sys.platform == 'darwin': # Issue 112938
+ cls.text.update = cls.text.update_idletasks
+ # Without this, test write, writelines, and goto... fail.
+ # The reasons and why macOS-specific are unclear.
@classmethod
def tearDownClass(cls):