diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2016-10-26 22:50:07 -0700 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-12-12 10:17:35 -0500 |
commit | 34a7814219b835e8d552cac890ccdf67aad65b2a (patch) | |
tree | e7fd1c63ad37e92e624a9fd0991f8906ba14fadb /test | |
parent | 86706011a67efb3e248691bf2391355d0e0e7d50 (diff) | |
download | rneovim-34a7814219b835e8d552cac890ccdf67aad65b2a.tar.gz rneovim-34a7814219b835e8d552cac890ccdf67aad65b2a.tar.bz2 rneovim-34a7814219b835e8d552cac890ccdf67aad65b2a.zip |
vim-patch:7.4.1605
Problem: Catching exception that won't be thrown.
Solution: Remove try/catch.
https://github.com/vim/vim/commit/3905e291fe4375ca5c59efa9ffcb01a39c7be3a9
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/055_list_and_dict_types_spec.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/functional/legacy/055_list_and_dict_types_spec.lua b/test/functional/legacy/055_list_and_dict_types_spec.lua index b9e5a8bc03..dbe9e1bc7f 100644 --- a/test/functional/legacy/055_list_and_dict_types_spec.lua +++ b/test/functional/legacy/055_list_and_dict_types_spec.lua @@ -274,17 +274,13 @@ describe('list and dictionary types', function() let dict.data = [1,2,3] call dict.func("len: ") let x = dict.func("again: ") - try - let Fn = dict.func - call Fn('xxx') - catch - $put =v:exception[:15] - endtry]]) + let Fn = dict.func + call Fn('xxx')]]) expect([[ len: 3 again: 3 - Vim(call):E725: ]]) + xxx3]]) end) it('Function in script-local List or Dict', function() |