90 'hash3': HASH_3, |
90 'hash3': HASH_3, |
91 } |
91 } |
92 |
92 |
93 HUGE_MANIFEST_ENTRIES = 200001 |
93 HUGE_MANIFEST_ENTRIES = 200001 |
94 |
94 |
|
95 izip = getattr(itertools, 'izip', zip) |
|
96 if 'xrange' not in globals(): |
|
97 xrange = range |
|
98 |
95 A_HUGE_MANIFEST = ''.join(sorted( |
99 A_HUGE_MANIFEST = ''.join(sorted( |
96 'file%d\0%s%s\n' % (i, h, f) for i, h, f in |
100 'file%d\0%s%s\n' % (i, h, f) for i, h, f in |
97 itertools.izip(xrange(200001), |
101 izip(xrange(200001), |
98 itertools.cycle((HASH_1, HASH_2)), |
102 itertools.cycle((HASH_1, HASH_2)), |
99 itertools.cycle(('', 'x', 'l'))))) |
103 itertools.cycle(('', 'x', 'l'))))) |
100 |
104 |
101 class basemanifesttests(object): |
105 class basemanifesttests(object): |
102 def parsemanifest(self, text): |
106 def parsemanifest(self, text): |
103 raise NotImplementedError('parsemanifest not implemented by test case') |
107 raise NotImplementedError('parsemanifest not implemented by test case') |
104 |
108 |