/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_groupcompress.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:
557
557
        vf = self.make_test_vf(True, dir='source')
558
558
        vf.add_lines(('a',), (), ['lines\n'])
559
559
        vf.writer.end()
560
 
        record = vf.get_record_stream([('a',)], 'unordered', True).next()
 
560
        record = next(vf.get_record_stream([('a',)], 'unordered', True))
561
561
        self.assertEqual(vf._DEFAULT_COMPRESSOR_SETTINGS,
562
562
                         record._manager._get_compressor_settings())
563
563
 
566
566
        vf.add_lines(('a',), (), ['lines\n'])
567
567
        vf.writer.end()
568
568
        vf._max_bytes_to_index = 1234
569
 
        record = vf.get_record_stream([('a',)], 'unordered', True).next()
 
569
        record = next(vf.get_record_stream([('a',)], 'unordered', True))
570
570
        self.assertEqual(dict(max_bytes_to_index=1234),
571
571
                         record._manager._get_compressor_settings())
572
572