aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_pyx2.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_pyx2.vim')
-rw-r--r--src/nvim/testdir/test_pyx2.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_pyx2.vim b/src/nvim/testdir/test_pyx2.vim
index 50e57c3bfb..10ff3b6e58 100644
--- a/src/nvim/testdir/test_pyx2.vim
+++ b/src/nvim/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