Mercurial > vim
diff src/testdir/test_pyx2.vim @ 16688:e791f29affae v8.1.1346
patch 8.1.1346: error for Python exception does not show useful info
commit https://github.com/vim/vim/commit/7f3a28490abb7c495239fc438825e3d1aaafa76d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 18 15:02:25 2019 +0200
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 #4381)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 May 2019 15:15:05 +0200 |
parents | 7598ce51bf2a |
children | f38fcbf343ce |
line wrap: on
line diff
--- a/src/testdir/test_pyx2.vim +++ b/src/testdir/test_pyx2.vim @@ -72,3 +72,11 @@ func Test_pyxfile() call assert_match(s:py3pattern, split(var)[0]) endif endfunc + +func Test_Catch_Exception_Message() + try + pyx raise RuntimeError( 'TEST' ) + catch /.*/ + call assert_match( '^Vim(.*):RuntimeError: TEST$', v:exception ) + endtry +endfunc