aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_pyx2.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-01-01 06:03:48 -0800
committerGitHub <noreply@github.com>2020-01-01 06:03:48 -0800
commit99eca048357b8ec72e84b45d21c2a38e25ed6ec0 (patch)
treeed4365b1ec8ec8abf6e485bf034c7afacd82f601 /src/nvim/testdir/test_pyx2.vim
parentdec165b268803d08425e0f173b2487c76a2c440c (diff)
parent0f47870d1b5e893857df007901f5f062939a9eb7 (diff)
downloadrneovim-99eca048357b8ec72e84b45d21c2a38e25ed6ec0.tar.gz
rneovim-99eca048357b8ec72e84b45d21c2a38e25ed6ec0.tar.bz2
rneovim-99eca048357b8ec72e84b45d21c2a38e25ed6ec0.zip
Merge #11645 from janlazo/vim-8.1.1346
vim-patch:8.1.1346,8.2.0068
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