~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-08 17:29:33 UTC
  • mfrom: (4327.1.6 failing-lock-tests)
  • mto: This revision was merged to the branch mainline in revision 4347.
  • Revision ID: v.ladeuil+lp@free.fr-20090508172933-b9855z2ru1ul9gwh
Fix some lock-related test failures

Show diffs side-by-side

added added

removed removed

Lines of Context:
368
368
        """
369
369
        tree = self.make_branch_and_memory_tree('tree')
370
370
        tree.lock_write()
371
 
        self.addCleanup(tree.branch.repository.unlock)
 
371
        self.addCleanup(tree.unlock)
372
372
        tree.add([''], ['root-id'])
373
373
        tree.commit('one', rev_id='rev-1')
374
374
        tree.commit('two', rev_id='rev-2')
385
385
        collection.reset()
386
386
        repo.refresh_data()
387
387
        vf = tree.branch.repository.revisions
388
 
        del tree
389
388
        # Set up a reload() function that switches to using the new pack file
390
389
        new_index = new_pack.revision_index
391
390
        access_tuple = new_pack.access_tuple()