diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-31 23:15:42 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-31 23:21:25 -0500 |
| commit | 0301de758ba90139a4af9edc3993ef438a4d4cd1 (patch) | |
| tree | bcd6de0df883c9055212036433718cc66d59e715 /src/nvim/testdir/test_python3.vim | |
| parent | e922576bdd6abd6736417343121120b289079565 (diff) | |
| download | rneovim-0301de758ba90139a4af9edc3993ef438a4d4cd1.tar.gz rneovim-0301de758ba90139a4af9edc3993ef438a4d4cd1.tar.bz2 rneovim-0301de758ba90139a4af9edc3993ef438a4d4cd1.zip | |
vim-patch:8.1.1346: error for Python exception does not show useful info
Problem: Error for Python exception does not show useful info.
Solution: Show the last line instead of the first one. (Ben Jackson,
closes vim/vim#4381)
https://github.com/vim/vim/commit/7f3a28490abb7c495239fc438825e3d1aaafa76d
Diffstat (limited to 'src/nvim/testdir/test_python3.vim')
| -rw-r--r-- | src/nvim/testdir/test_python3.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index cd07b0883f..e64a8fcc47 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -164,3 +164,11 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str() bwipe! endfunction + +func Test_Catch_Exception_Message() + try + py3 raise RuntimeError( 'TEST' ) + catch /.*/ + call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception ) + endtry +endfunc |