mcst-linux-kernel/patches-2024.06.26/vim-9.0.1672/0003-use-python3-for-tests-...

27 lines
1002 B
Diff

From previous version's patches with little changes.
Subject: use python3 for tests
Bug: 124454
diff -ruN vim-8.2.4788/src/testdir/shared.vim vim-8.2.4788-patch/src/testdir/shared.vim
--- vim-8.2.4788/src/testdir/shared.vim 2022-04-19 12:25:13.000000000 +0300
+++ vim-8.2.4788-patch/src/testdir/shared.vim 2022-04-26 15:30:21.701578213 +0300
@@ -18,16 +18,14 @@
if !(has('job') || executable('pkill'))
return ''
endif
- if executable('python')
- let s:python = 'python'
- elseif executable('python3')
+ if executable('python3')
let s:python = 'python3'
else
return ''
end
elseif has('win32')
" Use Python Launcher for Windows (py.exe) if available.
- " NOTE: if you get a "Python was not found" error, disable the Python
+ " NOTE: if you get a "Python3 was not found" error, disable the Python
" shortcuts in "Windows menu / Settings / Manage App Execution Aliases".
if executable('py.exe')
let s:python = 'py.exe'