"Test outwin, coverage 76%."
from idlelib import outwin
+import sys
import unittest
from test.support import requires
from tkinter import Tk, Text
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):
assert isinstance(s, str)
self.text.insert(mark, s, tags)
self.text.see(mark)
- self.text.update_idletasks()
+ self.text.update()
return len(s)
def writelines(self, lines):