Mercurial > vim
diff src/testdir/test86.ok @ 4405:907b1f035ee7 v7.3.951
updated for version 7.3.951
Problem: Python exceptions have problems.
Solution: Change some IndexErrors to TypeErrors. Make ?line number out of
range? an IndexError. Make ?unable to get option value? a
RuntimeError. Make all PyErr_SetString messages start with
lowercase letter and use _(). (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 15 May 2013 15:44:28 +0200 |
parents | a6f0544df95e |
children | fa90ebf2c8f3 |
line wrap: on
line diff
--- a/src/testdir/test86.ok +++ b/src/testdir/test86.ok @@ -102,7 +102,7 @@ bar B: 1:1 2:1 3:1 4:1 >>> previewheight p/gopts1: 12 - inv: 'a'! ValueError + inv: 'a'! TypeError p/wopts1! KeyError inv: 'a'! KeyError wopts1! KeyError @@ -123,7 +123,7 @@ bar B: 1:5 2:5 3:5 4:5 >>> operatorfunc p/gopts1: '' - inv: 2! ValueError + inv: 2! TypeError p/wopts1! KeyError inv: 2! KeyError wopts1! KeyError @@ -198,9 +198,9 @@ bar B: 1:'+2' 2:'+3' 3:'+1' 4:'' >>> statusline p/gopts1: '' - inv: 0! ValueError + inv: 0! TypeError p/wopts1: None - inv: 0! ValueError + inv: 0! TypeError p/bopts1! KeyError inv: 0! KeyError bopts1! KeyError @@ -259,7 +259,7 @@ bar wopts2! KeyError wopts3! KeyError p/bopts1: '' - inv: 1! ValueError + inv: 1! TypeError G: '' W: 1:'A' 2:'B' 3:'' 4:'C' B: 1:'A' 2:'B' 3:'' 4:'C' @@ -288,14 +288,14 @@ bar B: 1:0 2:1 3:0 4:1 >>> path p/gopts1: '.,/usr/include,,' - inv: 0! ValueError + inv: 0! TypeError p/wopts1! KeyError inv: 0! KeyError wopts1! KeyError wopts2! KeyError wopts3! KeyError p/bopts1: None - inv: 0! ValueError + inv: 0! TypeError G: '.,,' W: 1:'.,,' 2:',,' 3:'.,,' 4:'.' B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'