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

Method setUpClass

Lib/test/test_unittest/test_runner.py:582–584  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

580 class OuterTest(unittest.TestCase):
581 @classmethod
582 def setUpClass(cls):
583 ordering.append('outer setup')
584 cls.addClassCleanup(ordering.append, 'outer cleanup')
585 def test(self):
586 ordering.append('start outer test')
587 runTests(InnerTest)

Callers

nothing calls this directly

Calls 2

addClassCleanupMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected