Merge #11645 from janlazo/vim-8.1.1346

vim-patch:8.1.1346,8.2.0068
This commit is contained in:
Justin M. Keyes 2020-01-01 06:03:48 -08:00 committed by GitHub
commit 99eca04835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 0 deletions

View File

@ -164,3 +164,11 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str()
bwipe!
endfunction
func Test_Catch_Exception_Message()
try
py raise RuntimeError( 'TEST' )
catch /.*/
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
endtry
endfunc

View File

@ -164,3 +164,18 @@ 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
func Test_unicode()
" this crashed Vim once
" set encoding=utf32
py3 print('hello')
" set encoding=utf8
endfunc

View File

@ -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

View File

@ -72,3 +72,11 @@ func Test_pyxfile()
call assert_match(s:py2pattern, 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