~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rename_map.py

Fix 1 more lock-related test failure.

* tests/test_rename_map.py:
(TestRenameMap.test_guess_renames_preserves_children): Add the
forgotten unlock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        """When a directory has been moved, its children are preserved."""
151
151
        tree = self.make_branch_and_tree('tree')
152
152
        tree.lock_write()
 
153
        self.addCleanup(tree.unlock)
153
154
        self.build_tree_contents([('tree/foo/', ''),
154
155
                                  ('tree/foo/bar', 'bar'),
155
156
                                  ('tree/foo/empty', '')])