/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_bundle.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 02:21:19 UTC
  • mfrom: (7045.2.22 python3-q)
  • Revision ID: breezy.the.bot@gmail.com-20180725022119-j5tbtw8t58csyp2t
Fix a few more tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-q/+merge/349833

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
 
275
275
    def unified_diff(self, old, new):
276
276
        out = BytesIO()
277
 
        diff.internal_diff(b"old", old, b"new", new, out)
 
277
        diff.internal_diff("old", old, "new", new, out)
278
278
        out.seek(0, 0)
279
279
        return out.read()
280
280
 
1210
1210
                             )
1211
1211
        bundle = read_bundle(bundle_sio)
1212
1212
        revision_info = bundle.revisions[0]
1213
 
        self.assertEqual('rev1', revision_info.revision_id)
 
1213
        self.assertEqual(b'rev1', revision_info.revision_id)
1214
1214
        rev = revision_info.as_revision()
1215
1215
        self.assertEqual({'branch-nick':'tree', 'empty':'', 'one':'two'},
1216
1216
                         rev.properties)