~gz/brz/knit_load_py3

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_revision_history.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:
26
26
        # setup a standalone branch with three commits
27
27
        tree = self.make_branch_and_tree('test')
28
28
        with open('test/foo', 'wb') as f:
29
 
            f.write('1111\n')
 
29
            f.write(b'1111\n')
30
30
        tree.add('foo')
31
31
        tree.commit('added foo', rev_id=b'revision_1')
32
32
        with open('test/foo', 'wb')as f:
33
 
            f.write('2222\n')
 
33
            f.write(b'2222\n')
34
34
        tree.commit('updated foo', rev_id=b'revision_2')
35
35
        with open('test/foo', 'wb')as f:
36
 
            f.write('3333\n')
 
36
            f.write(b'3333\n')
37
37
        tree.commit('updated foo again', rev_id=b'revision_3')
38
38
        return tree
39
39