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

Method setUpClass

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

Source from the content-addressed store, hash-verified

394
395 @classmethod
396 def setUpClass(cls):
397 requires('gui')
398 cls.root = Tk()
399 cls.root.withdraw()
400 cls.text = Text(cls.root)
401 cls.text.undo_block_start = mock.Mock()
402 cls.text.undo_block_stop = mock.Mock()
403 cls.editor = DummyEditwin(cls.root, cls.text)
404 cls.formatter = ft.FormatRegion(cls.editor)
405
406 @classmethod
407 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 4

requiresFunction · 0.90
TkClass · 0.90
TextClass · 0.90
DummyEditwinClass · 0.70

Tested by

no test coverage detected