run-tests: unroll a non-so-one-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Jul 2021 22:48:47 +0200
changeset 47495 38f00245edb3
parent 47494 81d70de39c7e
child 47496 810022009cee
run-tests: unroll a non-so-one-liner This is shorter and clearer. Differential Revision: https://phab.mercurial-scm.org/D10939
tests/run-tests.py
--- 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)