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

Method setUpClass

Lib/idlelib/idle_test/test_format.py:272–279  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

270
271 @classmethod
272 def setUpClass(cls):
273 requires('gui')
274 cls.root = Tk()
275 cls.root.withdraw()
276 editor = Editor(root=cls.root)
277 cls.text = editor.text.text # Test code does not need the wrapper.
278 cls.formatter = ft.FormatParagraph(editor).format_paragraph_event
279 # Sets the insert mark just after the re-wrapped and inserted text.
280
281 @classmethod
282 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 3

requiresFunction · 0.90
TkClass · 0.90
EditorClass · 0.70

Tested by

no test coverage detected