Mercurial > hg
diff tests/run-tests.py @ 47495:38f00245edb3
run-tests: unroll a non-so-one-liner
This is shorter and clearer.
Differential Revision: https://phab.mercurial-scm.org/D10939
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Jul 2021 22:48:47 +0200 |
parents | 81d70de39c7e |
children | 810022009cee |
line wrap: on
line diff
--- a/tests/run-tests.py Fri Jul 02 22:48:35 2021 +0200 +++ b/tests/run-tests.py Fri Jul 02 22:48:47 2021 +0200 @@ -3564,10 +3564,9 @@ f.write(b'py -3.%d "$@"\n' % sys.version_info[1]) exedir, exename = os.path.split(sysexecutable) - vlog( - "# Modifying search path to find %s as %s in '%s'" - % (exename, pyexename, exedir) - ) + msg = "# Modifying search path to find %s as %s in '%s'" + msg %= (exename, pyexename, exedir) + vlog(msg) path = os.environ['PATH'].split(os.pathsep) while exedir in path: path.remove(exedir)