[PATCH V2] tests: make run-tests.py invokes tests with needed variables only (issue5069)

Yuya Nishihara yuya at tcha.org
Tue Mar 29 09:34:53 EDT 2016

On Mon, 28 Mar 2016 13:52:31 +0200, liscju wrote:
> +def copyusedenviron(environ):
> +    return {key: environ[key] for key in usedenvvariables if key in environ}

Use dict(). The dict comprehension requires Python 2.7+.


More information about the Mercurial-devel mailing list