[PATCH 1 of 2] test-check-interface: do not expect bare "python" executable exists
Yuya Nishihara
yuya at tcha.org
Sat Dec 19 03:56:39 UTC 2020
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1608346918 -32400
# Sat Dec 19 12:01:58 2020 +0900
# Node ID 5db45dfd6206490f8668559838c8888c4d4ca9ac
# Parent 09beb9a133f168111fbef4a729f1c0cc2bfb87ce
test-check-interface: do not expect bare "python" executable exists
The test would crash if python executable had version suffix.
diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py
+++ b/tests/test-check-interfaces.py
@@ -12,7 +12,7 @@ import sys
# 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)
More information about the Mercurial-devel
mailing list