Mercurial > hg-stable
changeset 47502:50829b9149b0
run-tests: clarify pyexename assignement
That assignement is wrong, we clarify that it is wrong before starting to fix
it. This will make the fix clearer.
Differential Revision: https://phab.mercurial-scm.org/D10941
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Jul 2021 22:53:17 +0200 |
parents | 810022009cee |
children | 9d929f9cb9b4 |
files | tests/run-tests.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Fri Jul 02 22:50:43 2021 +0200 +++ b/tests/run-tests.py Fri Jul 02 22:53:17 2021 +0200 @@ -3529,7 +3529,10 @@ def _usecorrectpython(self): """Configure the environment to use the appropriate Python in tests.""" # Tests must use the same interpreter as us or bad things will happen. - pyexename = sys.platform == 'win32' and b'python.exe' or b'python3' + if sys.platform == 'win32': + pyexename = b'python.exe' + else: + pyexename = b'python3' # XXX this is wrong with python2... # os.symlink() is a thing with py3 on Windows, but it requires # Administrator rights.