diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-28 17:04:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-28 17:04:43 +0100 |
commit | 9fee7d4729af19e7ce4950ede8de358c5eeb3772 (patch) | |
tree | 5122d7777963f3811c2a298ce56e372037b5424d /src/testdir/test86.ok | |
parent | e88a5f3a2c18426a68c4591d61bc612276878b46 (diff) | |
download | vim-git-9fee7d4729af19e7ce4950ede8de358c5eeb3772.tar.gz |
updated for version 7.4.107v7.4.107
Problem: Python: When vim.eval() encounters a Vim error, a try/catch in the
Python code doesn't catch it. (Yggdroot Chen)
Solution: Throw exceptions on errors in vim.eval(). (ZyX)
Diffstat (limited to 'src/testdir/test86.ok')
-rw-r--r-- | src/testdir/test86.ok | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test86.ok b/src/testdir/test86.ok index 2d5b1619e..9ef21db0c 100644 --- a/src/testdir/test86.ok +++ b/src/testdir/test86.ok @@ -53,8 +53,8 @@ None [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd'] [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}] [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New'] -Vim(python):E725: -Vim(python):E117: +l[1](1, 2, 3):error:('Vim:E725: Calling dict function without Dictionary: DictNew',) +f(1, 2, 3):error:('Vim:E117: Unknown function: New',) [0.0, 0.0] KeyError TypeError @@ -1197,6 +1197,7 @@ Exe("throw 'def'"):error:('def',) vim.eval("Exe('throw ''ghi''')"):error:('ghi',) vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',) vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',) +vim.eval("xxx_unknown_function_xxx()"):error:('Vim:E117: Unknown function: xxx_unknown_function_xxx',) vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',) Caught KeyboardInterrupt Running :put |