117
116
return _do_with_cleanups(
118
117
self.cleanups, self.func, self, *args, **kwargs)
122
self.cleanups, self.func, *args, **kwargs)
129
120
def _do_with_cleanups(cleanup_funcs, func, *args, **kwargs):
130
121
"""Run `func`, then call all the cleanup_funcs.