##// END OF EJS Templates
tests: make test-manifest finish importing in Python 3...
Augie Fackler -
r32534:0048a852 default
parent child Browse files
Show More
@@ -92,11 +92,15 b' A_DEEPER_MANIFEST = ('
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):
General Comments 0
You need to be logged in to leave comments. Login now