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

Method setUp

Lib/test/test_unittest/test_runner.py:147–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145
146 class TestableTest(unittest.TestCase):
147 def setUp(self):
148 ordering.append('setUp')
149 test.addCleanup(cleanup2)
150 if blowUp:
151 raise CustomError('foo')
152
153 def testNothing(self):
154 ordering.append('test')

Callers

nothing calls this directly

Calls 3

addCleanupMethod · 0.80
CustomErrorClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected