run-tests: unroll a non-so-one-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Jul 2021 22:48:35 +0200
changeset 47494 81d70de39c7e
parent 47493 2dac94edd98d
child 47495 38f00245edb3
run-tests: unroll a non-so-one-liner This is shorter and clearer. Differential Revision: https://phab.mercurial-scm.org/D10938
tests/run-tests.py
--- a/tests/run-tests.py	Fri Jul 02 20:18:42 2021 +0200
+++ b/tests/run-tests.py	Fri Jul 02 22:48:35 2021 +0200
@@ -3534,10 +3534,9 @@
         # os.symlink() is a thing with py3 on Windows, but it requires
         # Administrator rights.
         if getattr(os, 'symlink', None) and os.name != 'nt':
-            vlog(
-                "# Making python executable in test path a symlink to '%s'"
-                % sysexecutable
-            )
+            msg = "# Making python executable in test path a symlink to '%s'"
+            msg %= sysexecutable
+            vlog(msg)
             mypython = os.path.join(self._tmpbindir, pyexename)
             try:
                 if os.readlink(mypython) == sysexecutable: