comparison 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
comparison
equal deleted inserted replaced
16687:28e88bcb7681 16688:e791f29affae
70 pyxfile pyxfile/py3_shebang.py 70 pyxfile pyxfile/py3_shebang.py
71 redir END 71 redir END
72 call assert_match(s:py3pattern, split(var)[0]) 72 call assert_match(s:py3pattern, split(var)[0])
73 endif 73 endif
74 endfunc 74 endfunc
75
76 func Test_Catch_Exception_Message()
77 try
78 pyx raise RuntimeError( 'TEST' )
79 catch /.*/
80 call assert_match( '^Vim(.*):RuntimeError: TEST$', v:exception )
81 endtry
82 endfunc