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

Method on_cleanup2

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

Source from the content-addressed store, hash-verified

101 cvar = VAR.get()
102
103 async def on_cleanup2(self):
104 self.assertEqual(events, expected[:9])
105 events.append('cleanup2')
106 VAR.set(VAR.get() + ('cleanup2',))
107
108 def on_cleanup3(self):
109 self.assertEqual(events, expected[:8])

Callers

nothing calls this directly

Calls 5

MyExceptionClass · 0.70
assertEqualMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected