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

  • Committer: Martin
  • Date: 2017-06-04 18:09:30 UTC
  • mto: This revision was merged to the branch mainline in revision 6653.
  • Revision ID: gzlist@googlemail.com-20170604180930-zpcenvzu13lilaax
Apply 2to3 xrange fix and fix up with sixish range

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
    def test_node_references_three_digits(self):
237
237
        # test the node digit expands as needed.
238
238
        builder = index.GraphIndexBuilder(reference_lists=1)
239
 
        references = [(str(val), ) for val in reversed(range(9))]
 
239
        references = [(str(val), ) for val in range(8, -1, -1)]
240
240
        builder.add_node(('2-key', ), '', (references, ))
241
241
        stream = builder.finish()
242
242
        contents = stream.read()