/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: Martin
  • Date: 2017-05-25 01:35:55 UTC
  • mto: This revision was merged to the branch mainline in revision 6637.
  • Revision ID: gzlist@googlemail.com-20170525013555-lepzczdnzb9r272j
Apply 2to3 next fixer and make compatible

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.