From 4ceca862fceb021049144a9aed05c60ae39b7aba Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 20 Apr 2026 14:16:41 -0400 Subject: refactor(test): drop deprecated exc_exec #39242 --- test/functional/vimscript/lang_spec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/functional/vimscript/lang_spec.lua') diff --git a/test/functional/vimscript/lang_spec.lua b/test/functional/vimscript/lang_spec.lua index 923c8c215d..183a525180 100644 --- a/test/functional/vimscript/lang_spec.lua +++ b/test/functional/vimscript/lang_spec.lua @@ -2,13 +2,13 @@ local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eval, eq = n.clear, n.eval, t.eq -local exc_exec, source = n.exc_exec, n.source +local source = n.source describe('vimscript', function() before_each(clear) it('parses `` with turkish locale', function() - if exc_exec('lang ctype tr_TR.UTF-8') ~= 0 then + if not pcall(n.command, 'lang ctype tr_TR.UTF-8') then pending('Locale tr_TR.UTF-8 not supported') return end @@ -23,7 +23,7 @@ describe('vimscript', function() end) it('str2float is not affected by locale', function() - if exc_exec('lang ctype sv_SE.UTF-8') ~= 0 then + if not pcall(n.command, 'lang ctype sv_SE.UTF-8') then pending('Locale sv_SE.UTF-8 not supported') return end -- cgit