MCPcopy Index your code
hub / github.com/RustPython/RustPython / doClassCleanups

Method doClassCleanups

Lib/unittest/case.py:718–727  ·  view source on GitHub ↗

Execute all class cleanup functions. Normally called for you after tearDownClass.

(cls)

Source from the content-addressed store, hash-verified

716
717 @classmethod
718 def doClassCleanups(cls):
719 """Execute all class cleanup functions. Normally called for you after
720 tearDownClass."""
721 cls.tearDown_exceptions = []
722 while cls._class_cleanups:
723 function, args, kwargs = cls._class_cleanups.pop()
724 try:
725 function(*args, **kwargs)
726 except Exception:
727 cls.tearDown_exceptions.append(sys.exc_info())
728
729 def __call__(self, *args, **kwds):
730 return self.run(*args, **kwds)

Calls 3

functionFunction · 0.50
popMethod · 0.45
appendMethod · 0.45