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

Method setUpClass

Lib/idlelib/idle_test/test_codecontext.py:56–67  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

54
55 @classmethod
56 def setUpClass(cls):
57 requires('gui')
58 root = cls.root = Tk()
59 root.withdraw()
60 frame = cls.frame = Frame(root)
61 text = cls.text = Text(frame)
62 text.insert('1.0', code_sample)
63 # Need to pack for creation of code context text widget.
64 frame.pack(side='left', fill='both', expand=1)
65 text.grid(row=1, column=1, sticky=NSEW)
66 cls.editor = DummyEditwin(root, frame, text)
67 codecontext.idleConf.userCfg = testcfg
68
69 @classmethod
70 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 8

requiresFunction · 0.90
TkClass · 0.90
FrameClass · 0.90
TextClass · 0.90
DummyEditwinClass · 0.70
insertMethod · 0.45
packMethod · 0.45
gridMethod · 0.45

Tested by

no test coverage detected