# HG changeset patch # User Gregory Szorc # Date 2022-02-20 20:27:08 # Node ID 7caa967bb7b6afc63554536efdcd016b401f6275 # Parent a2f0af520ae5577e933a166b711405cec54440be tests: simplify Windows and PYTHON3 conditionals PYTHON3 is always True. So this flow can be reduced. Differential Revision: https://phab.mercurial-scm.org/D12243 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -3562,10 +3562,8 @@ class TestRunner(object): 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']