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

Method setUpClass

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

Source from the content-addressed store, hash-verified

613
614 @classmethod
615 def setUpClass(cls):
616 requires('gui')
617 cls.root = Tk()
618 cls.root.withdraw()
619 cls.text = Text(cls.root)
620 cls.editor = MockEditor(text=cls.text)
621 cls.do_rstrip = ft.Rstrip(cls.editor).do_rstrip
622
623 @classmethod
624 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