Mercurial > vim
comparison src/testdir/test_python2.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 | 402b714cb919 |
children | f38fcbf343ce |
comparison
equal
deleted
inserted
replaced
16687:28e88bcb7681 | 16688:e791f29affae |
---|---|
158 py vim.current.buffer[-1] = None | 158 py vim.current.buffer[-1] = None |
159 call assert_equal( line( '.' ), 10 ) | 159 call assert_equal( line( '.' ), 10 ) |
160 | 160 |
161 bwipe! | 161 bwipe! |
162 endfunction | 162 endfunction |
163 | |
164 func Test_Catch_Exception_Message() | |
165 try | |
166 py raise RuntimeError( 'TEST' ) | |
167 catch /.*/ | |
168 call assert_match( '^Vim(.*):RuntimeError: TEST$', v:exception ) | |
169 endtry | |
170 endfunc |