~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Wouter van Heyst
  • Date: 2012-01-25 19:07:22 UTC
  • mfrom: (6437.19.2 2.5)
  • mto: (6437.3.27 2.5)
  • mto: This revision was merged to the branch mainline in revision 6451.
  • Revision ID: larstiq@larstiq.dyndns.org-20120125190722-1bf3j0d6my1zd8v1
ensure files actually hit the disk under pypy

Show diffs side-by-side

added added

removed removed

Lines of Context:
807
807
        self.tree1 = self.make_branch_and_tree('b1')
808
808
        self.b1 = self.tree1.branch
809
809
 
810
 
        open('b1/one', 'wb').write('one\n')
 
810
        with open('b1/one', 'wb') as f: f.write('one\n')
811
811
        self.tree1.add('one')
812
812
        self.tree1.commit('add file', rev_id='a@cset-0-1')
813
 
        open('b1/one', 'wb').write('two\n')
 
813
        with open('b1/one', 'wb') as f: f.write('two\n')
814
814
        self.tree1.commit('modify', rev_id='a@cset-0-2')
815
 
        open('b1/one', 'wb').write('three\n')
 
815
        with open('b1/one', 'wb') as f: f.write('three\n')
816
816
        self.tree1.commit('modify', rev_id='a@cset-0-3')
817
817
        bundle_file = StringIO()
818
818
        rev_ids = write_bundle(self.tree1.branch.repository, 'a@cset-0-3',