summaryrefslogtreecommitdiff
path: root/src/testdir/test_python2.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-18 15:02:25 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-18 15:02:25 +0200
commit7f3a28490abb7c495239fc438825e3d1aaafa76d (patch)
tree1a9c55ef4716279a37b8c837e64af844bd560b78 /src/testdir/test_python2.vim
parent6349e9411fd17f80c7aff9c678a8800647d34cfa (diff)
downloadvim-git-7f3a28490abb7c495239fc438825e3d1aaafa76d.tar.gz
patch 8.1.1346: error for Python exception does not show useful infov8.1.1346
Problem: Error for Python exception does not show useful info. Solution: Show the last line instead of the first one. (Ben Jackson, closes #4381)
Diffstat (limited to 'src/testdir/test_python2.vim')
-rw-r--r--src/testdir/test_python2.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim
index 632f7a872..5703231ed 100644
--- a/src/testdir/test_python2.vim
+++ b/src/testdir/test_python2.vim
@@ -160,3 +160,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