Mercurial > hg
changeset 47494:81d70de39c7e
run-tests: unroll a non-so-one-liner
This is shorter and clearer.
Differential Revision: https://phab.mercurial-scm.org/D10938
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Jul 2021 22:48:35 +0200 |
parents | 2dac94edd98d |
children | 38f00245edb3 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: