Skip to content

Commit 28e9af8

Browse files
committed
ci: Fix Python 2 in CI stalling tests causing flaky failures
In MacVim CI, we install Python 2 for backwards compatibility reasons, but CI tests prefer Python 2 so we end up launching that instead, and it seems like that was the cause for some flaky failures (e.g. `Test_terminal_aucmd_on_close`). This is probably due to the fact that Python 2 is only availble in x86 and launching it on an ARM Mac needs to go through Rosetta which takes time and fails the timeout.
1 parent 0537cf2 commit 28e9af8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/testdir/shared.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func PythonProg()
2525
if !(has('job') || executable('pkill'))
2626
return ''
2727
endif
28-
if executable('python')
29-
let s:python = 'python'
30-
elseif executable('python3')
28+
if executable('python3')
3129
let s:python = 'python3'
30+
elseif executable('python')
31+
let s:python = 'python'
3232
else
3333
return ''
3434
end

0 commit comments

Comments
 (0)