~gz/brz/knit_load_py3

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_basis_inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-17 11:15:04 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 7003.
  • Revision ID: jelmer@jelmer.uk-20180617111504-i2eqvqbtfj5bp0t3
s/file/open.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                % (self.workingtree_format,))
39
39
 
40
40
        b = t.branch
41
 
        with open('a', 'wb') as f: f.write('a\n')
 
41
        with open('a', 'wb') as f: f.write(b'a\n')
42
42
        t.add('a')
43
43
        r1 = t.commit('a')
44
44
 
50
50
        store_inv = b.repository.get_inventory(r1)
51
51
        self.assertEqual([], store_inv._make_delta(basis_inv))
52
52
 
53
 
        with open('b', 'wb') as f: f.write('b\n')
 
53
        with open('b', 'wb') as f: f.write(b'b\n')
54
54
        t.add('b')
55
55
        r2 = t.commit('b')
56
56