# HG changeset patch # User Martin von Zweigbergk # Date 2020-11-09 17:58:44 # Node ID e7a4c018b563782b4b10cc8a687405312d67d7cb # Parent e0dbfbd4062c72fa60958397d19fe350d6a0ebce tests: use python from environment in test-parseindex2.py Without this, the test starts failing with D9273 (the change to `pyexename` to be specific). Differential Revision: https://phab.mercurial-scm.org/D9286 diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py --- a/tests/test-parseindex2.py +++ b/tests/test-parseindex2.py @@ -5,6 +5,7 @@ It also checks certain aspects of the pa from __future__ import absolute_import, print_function +import os import struct import subprocess import sys @@ -129,7 +130,7 @@ def importparsers(hexversion): "import sys; sys.hexversion=%s; " "import mercurial.cext.parsers" % hexversion ) - cmd = "python -c \"%s\"" % code + cmd = "\"%s\" -c \"%s\"" % (os.environ['PYTHON'], code) # We need to do these tests inside a subprocess because parser.c's # version-checking code happens inside the module init function, and # when using reload() to reimport an extension module, "The init function