def deferRunCleanups(self, ignored, result):
        """
        Run any scheduled cleanups and report errors (if any to the result
        object.
        """
        d = self._runCleanups()
        d.addCallback(self._cbDeferRunCleanups, result)
        return d

        Run any scheduled cleanups and report errors (if any to the result
        object.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/_asynctest.py