diff src/testdir/test_functions.vim @ 19255:04e1a025ef00 v8.2.0186

patch 8.2.0186: a couple of tests may fail when features are missing Commit: https://github.com/vim/vim/commit/705724e430abd10ffdd5f1a2bb5a8f9223ff5cdd Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 31 21:13:42 2020 +0100 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 https://github.com/vim/vim/issues/5561)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Jan 2020 21:15:04 +0100
parents 2a017e9dc6da
children e4a155edc9cb
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -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:')