~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_inv.py

  • Committer: Vincent Ladeuil
  • Date: 2007-10-23 07:15:13 UTC
  • mfrom: (2926 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071023071513-elryt6g2at34d2ur
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        super(TestEntryDiffing, self).setUp()
38
38
        self.wt = self.make_branch_and_tree('.')
39
39
        self.branch = self.wt.branch
40
 
        print >> open('file', 'wb'), 'foo'
41
 
        print >> open('binfile', 'wb'), 'foo'
 
40
        open('file', 'wb').write('foo\n')
 
41
        open('binfile', 'wb').write('foo\n')
42
42
        self.wt.add(['file'], ['fileid'])
43
43
        self.wt.add(['binfile'], ['binfileid'])
44
44
        if has_symlinks():
45
45
            os.symlink('target1', 'symlink')
46
46
            self.wt.add(['symlink'], ['linkid'])
47
47
        self.wt.commit('message_1', rev_id = '1')
48
 
        print >> open('file', 'wb'), 'bar'
49
 
        print >> open('binfile', 'wb'), 'x' * 1023 + '\x00'
 
48
        open('file', 'wb').write('bar\n')
 
49
        open('binfile', 'wb').write('x' * 1023 + '\x00\n')
50
50
        if has_symlinks():
51
51
            os.unlink('symlink')
52
52
            os.symlink('target2', 'symlink')