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

Method doClassCleanups

Lib/unittest/case.py:711–720  ·  view source on GitHub ↗

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

(cls)

Source from the content-addressed store, hash-verified

709
710 @classmethod
711 def doClassCleanups(cls):
712 """Execute all class cleanup functions. Normally called for you after
713 tearDownClass."""
714 cls.tearDown_exceptions = []
715 while cls._class_cleanups:
716 function, args, kwargs = cls._class_cleanups.pop()
717 try:
718 function(*args, **kwargs)
719 except Exception:
720 cls.tearDown_exceptions.append(sys.exc_info())
721
722 def __call__(self, *args, **kwds):
723 return self.run(*args, **kwds)

Calls 3

functionFunction · 0.50
popMethod · 0.45
appendMethod · 0.45