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

  • Committer: Jelmer Vernooij
  • Date: 2018-06-29 17:57:21 UTC
  • mto: This revision was merged to the branch mainline in revision 7026.
  • Revision ID: jelmer@jelmer.uk-20180629175721-ptg2fk3k2lul7lch
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
760
760
 
761
761
    def create_gz_content(self, text):
762
762
        sio = BytesIO()
763
 
        gz_file = gzip.GzipFile(mode='wb', fileobj=sio)
764
 
        gz_file.write(text)
765
 
        gz_file.close()
 
763
        with gzip.GzipFile(mode='wb', fileobj=sio) as gz_file:
 
764
            gz_file.write(text)
766
765
        return sio.getvalue()
767
766
 
768
767
    def make_multiple_records(self):