~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2009-12-05 08:44:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091205084450-1z180vgkxb2cfjy6
Delete the old '__runCleanups'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1628
1628
        finally:
1629
1629
            self._benchtime += time.time() - start
1630
1630
 
1631
 
    def __runCleanups(self):
1632
 
        """Run registered cleanup functions.
1633
 
 
1634
 
        This should only be called from TestCase.tearDown.
1635
 
        """
1636
 
        # TODO: Perhaps this should keep running cleanups even if
1637
 
        # one of them fails?
1638
 
 
1639
 
        # Actually pop the cleanups from the list so tearDown running
1640
 
        # twice is safe (this happens for skipped tests).
1641
 
        while self._cleanups:
1642
 
            cleanup, args, kwargs = self._cleanups.pop()
1643
 
            cleanup(*args, **kwargs)
1644
 
 
1645
1631
    def log(self, *args):
1646
1632
        mutter(*args)
1647
1633