/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/blackbox/test_export.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 03:06:42 UTC
  • mfrom: (7045.3.4 python3-r)
  • Revision ID: breezy.the.bot@gmail.com-20180725030642-oghhedvui3470wy6
Fix another ~500 tests on Python 3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
        zf = zipfile.ZipFile('../first.zip')
342
342
        try:
343
343
            self.assertEqual(['first/hello'], sorted(zf.namelist()))
344
 
            self.assertEqual('foo', zf.read('first/hello'))
 
344
            self.assertEqual(b'foo', zf.read('first/hello'))
345
345
        finally:
346
346
            zf.close()
347
347
 
349
349
        zf = zipfile.ZipFile('../first2.zip')
350
350
        try:
351
351
            self.assertEqual(['pizza/hello'], sorted(zf.namelist()))
352
 
            self.assertEqual('foo', zf.read('pizza/hello'))
 
352
            self.assertEqual(b'foo', zf.read('pizza/hello'))
353
353
        finally:
354
354
            zf.close()
355
355
 
357
357
        zf = zipfile.ZipFile('../first-zip')
358
358
        try:
359
359
            self.assertEqual(['first-zip/hello'], sorted(zf.namelist()))
360
 
            self.assertEqual('foo', zf.read('first-zip/hello'))
 
360
            self.assertEqual(b'foo', zf.read('first-zip/hello'))
361
361
        finally:
362
362
            zf.close()
363
363