0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.0186: a couple of tests may fail when features are missing

Problem:    A couple of tests may fail when features are missing.
Solution:   Check for features. (Dominique Pelle, closes #5561)
This commit is contained in:
Bram Moolenaar
2020-01-31 21:13:42 +01:00
parent a259d8d30b
commit 705724e430
3 changed files with 4 additions and 1 deletions

View File

@@ -1999,7 +1999,7 @@ func Test_range()
set tagfunc=
" term_start()
if has('terminal')
if has('terminal') && has('termguicolors')
call assert_fails('call term_start(range(3, 4))', 'E474:')
let g:terminal_ansi_colors = range(16)
call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')