update
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user