refactor(test): drop deprecated exc_exec #39242

This commit is contained in:
Justin M. Keyes
2026-04-20 14:16:41 -04:00
committed by GitHub
parent faa7c15b5a
commit 4ceca862fc
77 changed files with 1009 additions and 799 deletions

View File

@@ -2,8 +2,9 @@ local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local pcall_err = t.pcall_err
local clear = n.clear
local exc_exec = n.exc_exec
local command = n.command
describe(':syntax', function()
before_each(clear)
@@ -12,7 +13,7 @@ describe(':syntax', function()
it('does not crash when group name contains unprintable characters', function()
eq(
'Vim(syntax):E669: Unprintable character in group name',
exc_exec('syntax keyword \024 foo bar')
pcall_err(command, 'syntax keyword \024 foo bar')
)
end)
end)