Rev 4333: Fix 1 more lock-related test failure. in file:///home/vila/src/bzr/experimental/failing-lock-tests/

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri May 8 17:34:09 BST 2009


At file:///home/vila/src/bzr/experimental/failing-lock-tests/

------------------------------------------------------------
revno: 4333
revision-id: v.ladeuil+lp at free.fr-20090508163409-83gvsoy3fuy58k2y
parent: v.ladeuil+lp at free.fr-20090508161726-gwbl943242sh3lxb
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: failing-lock-tests
timestamp: Fri 2009-05-08 18:34:09 +0200
message:
  Fix 1 more lock-related test failure.
  
  * tests/test_rename_map.py:
  (TestRenameMap.test_guess_renames_preserves_children): Add the
  forgotten unlock.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_rename_map.py'
--- a/bzrlib/tests/test_rename_map.py	2009-03-30 20:59:42 +0000
+++ b/bzrlib/tests/test_rename_map.py	2009-05-08 16:34:09 +0000
@@ -150,6 +150,7 @@
         """When a directory has been moved, its children are preserved."""
         tree = self.make_branch_and_tree('tree')
         tree.lock_write()
+        self.addCleanup(tree.unlock)
         self.build_tree_contents([('tree/foo/', ''),
                                   ('tree/foo/bar', 'bar'),
                                   ('tree/foo/empty', '')])



More information about the bazaar-commits mailing list