run-tests: unroll a non-so-one-liner
This is shorter and clearer.
Differential Revision: https://phab.mercurial-scm.org/D10939
--- 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)