MCPcopy Index your code
hub / github.com/python/cpython / setUpClass

Method setUpClass

Lib/idlelib/idle_test/test_outwin.py:17–26  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

requiresFunction · 0.90
TkClass · 0.90
TextClass · 0.90

Tested by

no test coverage detected