test-check-interface: do not expect bare "python" executable exists
authorYuya Nishihara <yuya@tcha.org>
Sat, 19 Dec 2020 12:01:58 +0900
changeset 46176 300f6e23882a
parent 46175 a04c03b0678e
child 46177 0c320e6032f1
test-check-interface: do not expect bare "python" executable exists The test would crash if python executable had version suffix.
tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py	Fri Dec 18 20:09:11 2020 +0900
+++ b/tests/test-check-interfaces.py	Sat Dec 19 12:01:58 2020 +0900
@@ -12,7 +12,7 @@
 
 # Only run if tests are run in a repo
 if subprocess.call(
-    ['python', '%s/hghave' % os.environ['TESTDIR'], 'test-repo']
+    [sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'test-repo']
 ):
     sys.exit(80)