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

Method setUpClass

Lib/test/test_unittest/test_result.py:1054–1056  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1052 class Foo(unittest.TestCase):
1053 @classmethod
1054 def setUpClass(cls):
1055 print('set up class')
1056 1/0
1057 def test_foo(self):
1058 pass
1059 suite = unittest.TestSuite([Foo('test_foo')])

Callers

nothing calls this directly

Calls 1

addClassCleanupMethod · 0.80

Tested by

no test coverage detected