~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_parents.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-24 12:53:22 UTC
  • mfrom: (3697.7.3 1.7)
  • mto: (3697.7.4 1.7)
  • mto: This revision was merged to the branch mainline in revision 3748.
  • Revision ID: john@arbash-meinel.com-20080924125322-p1i7pnr0m49v1hze
Bring in the 1.7 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
        # the delta.
338
338
        result_basis = tree.basis_tree()
339
339
        result_basis.lock_read()
340
 
        self.addCleanup(result_basis.unlock)
341
 
        self.assertEqual(expected_inventory, result_basis.inventory)
 
340
        try:
 
341
            self.assertEqual(expected_inventory, result_basis.inventory)
 
342
        finally:
 
343
            result_basis.unlock()
342
344
 
343
345
    def make_inv_delta(self, old, new):
344
346
        """Make an inventory delta from two inventories."""