D10939: run-tests: unroll a non-so-one-liner
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Jul 2 22:37:51 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is shorter and clearer.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10939
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list