tests/test-manifest.py
changeset 49287 7fe82a5101c9
parent 49285 56f98406831b
equal deleted inserted replaced
49286:b2e05a8e15d1 49287:7fe82a5101c9
    56     b'hash3': HASH_3,
    56     b'hash3': HASH_3,
    57 }
    57 }
    58 
    58 
    59 HUGE_MANIFEST_ENTRIES = 200001
    59 HUGE_MANIFEST_ENTRIES = 200001
    60 
    60 
    61 izip = getattr(itertools, 'izip', zip)
       
    62 
       
    63 A_HUGE_MANIFEST = b''.join(
    61 A_HUGE_MANIFEST = b''.join(
    64     sorted(
    62     sorted(
    65         b'file%d\0%s%s\n' % (i, h, f)
    63         b'file%d\0%s%s\n' % (i, h, f)
    66         for i, h, f in izip(
    64         for i, h, f in zip(
    67             range(200001),
    65             range(200001),
    68             itertools.cycle((HASH_1, HASH_2)),
    66             itertools.cycle((HASH_1, HASH_2)),
    69             itertools.cycle((b'', b'x', b'l')),
    67             itertools.cycle((b'', b'x', b'l')),
    70         )
    68         )
    71     )
    69     )