(cls)
| 15 | |
| 16 | @classmethod |
| 17 | def setUpClass(cls): |
| 18 | requires('gui') |
| 19 | root = cls.root = Tk() |
| 20 | root.withdraw() |
| 21 | w = cls.window = outwin.OutputWindow(None, None, None, root) |
| 22 | cls.text = w.text = Text(root) |
| 23 | if sys.platform == 'darwin': # Issue 112938 |
| 24 | cls.text.update = cls.text.update_idletasks |
| 25 | # Without this, test write, writelines, and goto... fail. |
| 26 | # The reasons and why macOS-specific are unclear. |
| 27 | |
| 28 | @classmethod |
| 29 | def tearDownClass(cls): |