diff 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
line wrap: on
line diff
--- 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)