Mercurial > public > mercurial-scm > hg-stable
changeset 48956:7caa967bb7b6
tests: simplify Windows and PYTHON3 conditionals
PYTHON3 is always True. So this flow can be reduced.
Differential Revision: https://phab.mercurial-scm.org/D12243
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 13:27:08 -0700 |
parents | a2f0af520ae5 |
children | 2ccd5e71bcd3 |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sun Feb 20 13:26:15 2022 -0700 +++ b/tests/run-tests.py Sun Feb 20 13:27:08 2022 -0700 @@ -3562,10 +3562,8 @@ 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. - if WINDOWS and PYTHON3: + if WINDOWS: pyexe_names = [b'python', b'python3', b'python.exe'] - elif WINDOWS: - pyexe_names = [b'python', b'python.exe'] else: pyexe_names = [b'python', b'python3']