# HG changeset patch # User Mathias De Mare # Date 1605128505 -3600 # Node ID e01ea83258592d831686de4e314976c266d6d7f8 # Parent be6544a05e8faee26eeb2ebd4df18748b4aa950c test-filecache: use sys.executable to call python As was mentioned in c102b704edb5, test scripts calling 'python' or 'python3' might use the wrong python. For test-filecache.py, this causes a failed test on CentOS 7. Differential Revision: https://phab.mercurial-scm.org/D9295 diff -r be6544a05e8f -r e01ea8325859 tests/test-filecache.py --- a/tests/test-filecache.py Tue Sep 01 11:03:47 2020 -0400 +++ b/tests/test-filecache.py Wed Nov 11 22:01:45 2020 +0100 @@ -5,7 +5,7 @@ import sys if subprocess.call( - ['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable'] + [sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'cacheable'] ): sys.exit(80)