~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_eol_conversion.py

Merge cleanup into description

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
    def prepare_tree(self, content, eol=None):
69
69
        """Prepare a working tree and commit some content."""
70
 
        def restore_real_rules_searcher():
71
 
            WorkingTree._get_rules_searcher = self.real_rules_searcher
72
 
        self.real_rules_searcher = WorkingTree._get_rules_searcher
73
 
        self.addCleanup(restore_real_rules_searcher)
 
70
        self.real_rules_searcher = self.overrideAttr(
 
71
            WorkingTree, '_get_rules_searcher')
74
72
        self.patch_rules_searcher(eol)
75
73
        t = self.make_branch_and_tree('tree1')
76
74
        self.build_tree_contents([('tree1/file1', content)])