# HG changeset patch # User Simon Heimberg # Date 2009-04-22 13:49:33 # Node ID 1bb8a75fceb385e34720603b7a8394addba4f44e # Parent 094e0d982c8ae047fa2dc0e441bfdc5821324dea run-tests: cosmetics diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -512,12 +512,11 @@ def runchildren(options, expecthg, tests tests.reverse() jobs = [[] for j in xrange(options.jobs)] while tests: - for j in xrange(options.jobs): + for job in jobs: if not tests: break - jobs[j].append(tests.pop()) + job.append(tests.pop()) fps = {} - for j in xrange(len(jobs)): - job = jobs[j] + for j, job in enumerate(jobs): if not job: continue rfd, wfd = os.pipe()