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

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-05-26 09:35:13 UTC
  • mfrom: (6634.2.2 next_up_next)
  • Revision ID: breezy.the.bot@gmail.com-20170526093513-funr1gww70uc4mag
Make iterator objects and use of next Python 3 compatible

Merged from https://code.launchpad.net/~gz/brz/next_up_next/+merge/324586

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
            "Bazaar pack format 1 (introduced in 0.18)\n")
266
266
        iterator = reader.iter_records()
267
267
        self.assertRaises(
268
 
            errors.UnexpectedEndOfContainerError, iterator.next)
 
268
            errors.UnexpectedEndOfContainerError, next, iterator)
269
269
 
270
270
    def test_unknown_record_type(self):
271
271
        """Unknown record types cause UnknownRecordTypeError to be raised."""
273
273
            "Bazaar pack format 1 (introduced in 0.18)\nX")
274
274
        iterator = reader.iter_records()
275
275
        self.assertRaises(
276
 
            errors.UnknownRecordTypeError, iterator.next)
 
276
            errors.UnknownRecordTypeError, next, iterator)
277
277
 
278
278
    def test_container_with_one_unnamed_record(self):
279
279
        """Read a container with one Bytes record.