~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge.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:
2863
2863
 
2864
2864
    def get_merger_factory(self):
2865
2865
        # Allows  the inner methods to access the test attributes
2866
 
        test = self
 
2866
        calls = self.calls
2867
2867
 
2868
2868
        class FooMerger(_mod_merge.ConfigurableFileMerger):
2869
2869
            name_prefix = "foo"
2870
2870
            default_files = ['bar']
2871
2871
 
2872
2872
            def merge_text(self, params):
2873
 
                test.calls.append('merge_text')
 
2873
                calls.append('merge_text')
2874
2874
                return ('not_applicable', None)
2875
2875
 
2876
2876
        def factory(merger):