Merge pull request #6248 from sellout/reuse-python

Avoid inconsistent Python lookup
This commit is contained in:
Daira Hopwood 2022-11-18 22:52:38 +00:00 committed by GitHub
commit 27ffefed12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -137,12 +137,8 @@ def ensure_no_dot_so_in_depends():
return exit_code == 0
def util_test():
python = []
if os.path.isfile('/usr/local/bin/python3'):
python = ['/usr/local/bin/python3']
return subprocess.call(
python + [repofile('src/test/bitcoin-util-test.py')],
[sys.executable, repofile('src/test/bitcoin-util-test.py')],
cwd=repofile('src'),
env={'PYTHONPATH': repofile('src/test'), 'srcdir': repofile('src')}
) == 0