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