~gz/brz/knit_load_py3

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_revno.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:
36
36
        bzr('init')
37
37
        self.assertEqual(int(bzr('revno')), 0)
38
38
 
39
 
        with open('foo', 'wb') as f: f.write('foo\n')
 
39
        with open('foo', 'wb') as f: f.write(b'foo\n')
40
40
        bzr('add foo')
41
41
        bzr('commit -m foo')
42
42
        self.assertEqual(int(bzr('revno')), 1)