]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0841: tests: still preferring python2 over python3 v9.1.0841
authorYee Cheng Chin <ychin.git@gmail.com>
Mon, 4 Nov 2024 19:26:47 +0000 (20:26 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 4 Nov 2024 19:26:47 +0000 (20:26 +0100)
commitcef8ab2c75841cee1cd72266aa662fbe54fc0acc
treed94b0a0f00ce1d555bf2e547fd8a9917bb2ac536
parentc04bc64ba61f2386fafb086b47f16f122a0c779a
patch 9.1.0841: tests: still preferring python2 over python3

Problem:  tests: still preferring python2 over python3
Solution: prefer Python 3 when picking a Python program in Vim tests,
          by checking for the more specific python version first and
          only when python3 not found, check for the python binary
          (Yee Cheng Chin)

Most OSes have Python 3 mapped to `python3` instead of `python`. Vim
tests should prioritize using that instead of Python 2 in case that is
still installed on the host system.

closes: #15986

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/shared.vim
src/version.c