comparison tests/test-check-interfaces.py @ 46176:300f6e23882a

test-check-interface: do not expect bare "python" executable exists The test would crash if python executable had version suffix.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 19 Dec 2020 12:01:58 +0900
parents 8c66a680f396
children 0738bc25d6ac
comparison
equal deleted inserted replaced
46175:a04c03b0678e 46176:300f6e23882a
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 # Only run if tests are run in a repo 13 # Only run if tests are run in a repo
14 if subprocess.call( 14 if subprocess.call(
15 ['python', '%s/hghave' % os.environ['TESTDIR'], 'test-repo'] 15 [sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'test-repo']
16 ): 16 ):
17 sys.exit(80) 17 sys.exit(80)
18 18
19 from mercurial.interfaces import ( 19 from mercurial.interfaces import (
20 dirstate as intdirstate, 20 dirstate as intdirstate,