Rev 4663: Cleanup remaining bzr-limbo-XXXXXX leaks in /tmp during selftest. in file:///home/vila/src/bzr/experimental/test-isolation/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Sep 2 10:07:24 BST 2009
At file:///home/vila/src/bzr/experimental/test-isolation/
------------------------------------------------------------
revno: 4663
revision-id: v.ladeuil+lp at free.fr-20090902090724-b3rekpd6jd7u1gae
parent: v.ladeuil+lp at free.fr-20090902090054-tv964xyjkak9yl20
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-isolation
timestamp: Wed 2009-09-02 11:07:24 +0200
message:
Cleanup remaining bzr-limbo-XXXXXX leaks in /tmp during selftest.
* bzrlib/tests/test_transform.py:
(TestCommitTransform.test_first_commit,
TestCommitTransform.test_first_commit_with_merge_parents,
TestCommitTransform.test_modify_strict): Add the missing finalize()
cleanup call.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transform.py'
--- a/bzrlib/tests/test_transform.py 2009-08-13 01:33:15 +0000
+++ b/bzrlib/tests/test_transform.py 2009-09-02 09:07:24 +0000
@@ -1916,6 +1916,7 @@
branch.lock_write()
self.addCleanup(branch.unlock)
tt = TransformPreview(branch.basis_tree())
+ self.addCleanup(tt.finalize)
tt.new_directory('', ROOT_PARENT, 'TREE_ROOT')
rev = tt.commit(branch, 'my message')
self.assertEqual([], branch.basis_tree().get_parent_ids())
@@ -1927,6 +1928,7 @@
branch.lock_write()
self.addCleanup(branch.unlock)
tt = TransformPreview(branch.basis_tree())
+ self.addCleanup(tt.finalize)
e = self.assertRaises(ValueError, tt.commit, branch,
'my message', ['rev1b-id'])
self.assertEqual('Cannot supply merge parents for first commit.',
@@ -1957,6 +1959,7 @@
tt.new_file('file', tt.root, 'contents', 'file-id')
tt.commit(branch, 'message', strict=True)
tt = TransformPreview(branch.basis_tree())
+ self.addCleanup(tt.finalize)
trans_id = tt.trans_id_file_id('file-id')
tt.delete_contents(trans_id)
tt.create_file('contents', trans_id)
More information about the bazaar-commits
mailing list