# HG changeset patch # User Pierre-Yves David # Date 2021-07-02 20:48:47 # Node ID 38f00245edb3fe87ab06c0a2425434bda27284fc # Parent 81d70de39c7e58fbcd767000c8d4c9941442e25e run-tests: unroll a non-so-one-liner This is shorter and clearer. Differential Revision: https://phab.mercurial-scm.org/D10939 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -3564,10 +3564,9 @@ class TestRunner(object): 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)