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

Method asyncSetUp

Lib/test/test_unittest/test_async_case.py:72–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 self.addAsyncCleanup(self.on_cleanup2)
71
72 async def asyncSetUp(self):
73 self.assertEqual(events, expected[:1])
74 events.append('asyncSetUp')
75 VAR.set(VAR.get() + ('asyncSetUp',))
76 self.addCleanup(self.on_cleanup3)
77 self.addAsyncCleanup(self.on_cleanup4)
78
79 async def test_func(self):
80 self.assertEqual(events, expected[:2])

Callers

nothing calls this directly

Calls 7

addCleanupMethod · 0.80
addAsyncCleanupMethod · 0.80
MyExceptionClass · 0.70
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected