/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_read_bundle.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-03 01:51:19 UTC
  • mfrom: (6973.14.14 python3-m)
  • Revision ID: breezy.the.bot@gmail.com-20180703015119-8wqoc0wqw45irl6r
Fix more tests on Python3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    out = BytesIO()
52
52
    rev_ids = write_bundle(wt.branch.repository,
53
 
                           wt.get_parent_ids()[0], 'null:', out)
 
53
                           wt.get_parent_ids()[0], b'null:', out)
54
54
    out.seek(0)
55
55
    return out, wt
56
56
 
91
91
        info = self.read_mergeable_from_url(
92
92
            text_type(self.get_url(self.bundle_name)))
93
93
        revision = info.real_revisions[-1]
94
 
        self.assertEqual('commit-1', revision.revision_id)
 
94
        self.assertEqual(b'commit-1', revision.revision_id)
95
95
 
96
96
    def test_read_fail(self):
97
97
        # Trying to read from a directory, or non-bundle file