~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-20 11:07:31 UTC
  • mfrom: (5340.12.29 2.4-613247-test-cases)
  • Revision ID: pqm@pqm.ubuntu.com-20110520110731-8slefcqat6dr3asl
(jameinel) Bug #613247,
 clean up a bunch of test cases to avoid putting 'self' in the reference
 cycle. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1602
1602
        self.addCleanup(target.unlock)
1603
1603
        source = source_tree.branch.repository._get_source(target._format)
1604
1604
        self.orig_pack = target.pack
1605
 
        target.pack = self.log_pack
 
1605
        self.overrideAttr(target, "pack", self.log_pack)
1606
1606
        search = target.search_missing_revision_ids(
1607
1607
            source_tree.branch.repository, revision_ids=[tip])
1608
1608
        stream = source.get_stream(search)
1626
1626
        self.addCleanup(target.unlock)
1627
1627
        source = source_tree.branch.repository
1628
1628
        self.orig_pack = target.pack
1629
 
        target.pack = self.log_pack
 
1629
        self.overrideAttr(target, "pack", self.log_pack)
1630
1630
        target.fetch(source)
1631
1631
        if expect_pack_called:
1632
1632
            self.assertLength(1, self.calls)