# HG changeset patch # User Augie Fackler # Date 1496009316 14400 # Node ID 0048a852b6aa5244e30f0ae902f2855f6d3dd201 # Parent d68f3d6bc2147858e0b43d060b8315206f863bba tests: make test-manifest finish importing in Python 3 The test is still broken, but now it executes. diff -r d68f3d6bc214 -r 0048a852b6aa tests/test-manifest.py --- a/tests/test-manifest.py Sun May 28 18:08:14 2017 -0400 +++ b/tests/test-manifest.py Sun May 28 18:08:36 2017 -0400 @@ -92,11 +92,15 @@ HUGE_MANIFEST_ENTRIES = 200001 +izip = getattr(itertools, 'izip', zip) +if 'xrange' not in globals(): + xrange = range + A_HUGE_MANIFEST = ''.join(sorted( 'file%d\0%s%s\n' % (i, h, f) for i, h, f in - itertools.izip(xrange(200001), - itertools.cycle((HASH_1, HASH_2)), - itertools.cycle(('', 'x', 'l'))))) + izip(xrange(200001), + itertools.cycle((HASH_1, HASH_2)), + itertools.cycle(('', 'x', 'l'))))) class basemanifesttests(object): def parsemanifest(self, text):