/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/plugins/git/tests/test_pristine_tar.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-02 01:50:36 UTC
  • mfrom: (6973.13.15 python3-l)
  • Revision ID: breezy.the.bot@gmail.com-20180702015036-p7h30yemu44e4p01
Fix more tests on Python3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    def test_read_pristine_tar_data_no_file(self):
64
64
        r = GitMemoryRepo()
65
65
        t = Tree()
66
 
        b = Blob.from_string("README")
 
66
        b = Blob.from_string(b"README")
67
67
        r.object_store.add_object(b)
68
 
        t.add("README", stat.S_IFREG | 0o644, b.id)
 
68
        t.add(b"README", stat.S_IFREG | 0o644, b.id)
69
69
        r.object_store.add_object(t)
70
70
        r.do_commit("Add README", tree=t.id,
71
71
                    ref='refs/heads/pristine-tar')