# HG changeset patch # User Matt Mackall # Date 2012-01-12 20:39:02 # Node ID 14132a55d66b9d8c4e5eb44d518f26ee6538c724 # Parent 58dcb837f193f978692d15cf296449a2be0dc41d run-tests: use a list comprehension instead of map diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -493,7 +493,7 @@ def outputcoverage(options): return covrun('-c') - omit = ','.join(map(os.path.join, [BINDIR, TESTDIR], ['*'] * 2)) + omit = ','.join(os.path.join(x, '*') for x in [BINDIR, TESTDIR]) covrun('-i', '-r', '"--omit=%s"' % omit) # report if options.annotate: adir = os.path.join(TESTDIR, 'annotated')