Rev 4798: Delete the old '__runCleanups' in http://bazaar.launchpad.net/~lifeless/bzr/subunit
Robert Collins
robertc at robertcollins.net
Sat Dec 5 08:44:54 GMT 2009
At http://bazaar.launchpad.net/~lifeless/bzr/subunit
------------------------------------------------------------
revno: 4798
revision-id: robertc at robertcollins.net-20091205084450-1z180vgkxb2cfjy6
parent: robertc at robertcollins.net-20091205084348-75beh857mv0jdlav
committer: Robert Collins <robertc at robertcollins.net>
branch nick: subunit
timestamp: Sat 2009-12-05 19:44:50 +1100
message:
Delete the old '__runCleanups'
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2009-12-05 08:43:48 +0000
+++ b/bzrlib/tests/__init__.py 2009-12-05 08:44:50 +0000
@@ -1628,20 +1628,6 @@
finally:
self._benchtime += time.time() - start
- def __runCleanups(self):
- """Run registered cleanup functions.
-
- This should only be called from TestCase.tearDown.
- """
- # TODO: Perhaps this should keep running cleanups even if
- # one of them fails?
-
- # Actually pop the cleanups from the list so tearDown running
- # twice is safe (this happens for skipped tests).
- while self._cleanups:
- cleanup, args, kwargs = self._cleanups.pop()
- cleanup(*args, **kwargs)
-
def log(self, *args):
mutter(*args)
More information about the bazaar-commits
mailing list