/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: Jelmer Vernooij
  • Date: 2018-07-02 20:37:44 UTC
  • mfrom: (7025 work)
  • mto: This revision was merged to the branch mainline in revision 7027.
  • Revision ID: jelmer@jelmer.uk-20180702203744-3i0bimk0r5pfzjzl
merge trunk

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')