|
Karsten Hopp |
fe41c0 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
fe41c0 |
Subject: Patch 7.3.659
|
|
Karsten Hopp |
fe41c0 |
Fcc: outbox
|
|
Karsten Hopp |
fe41c0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fe41c0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
fe41c0 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
fe41c0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fe41c0 |
------------
|
|
Karsten Hopp |
fe41c0 |
|
|
Karsten Hopp |
fe41c0 |
Patch 7.3.659
|
|
Karsten Hopp |
fe41c0 |
Problem: Recent Python changes are not tested.
|
|
Karsten Hopp |
fe41c0 |
Solution: Add tests for Python bindings. (ZyX)
|
|
Karsten Hopp |
fe41c0 |
Files: src/testdir/test86.in, src/testdir/test86.ok,
|
|
Karsten Hopp |
fe41c0 |
src/testdir/test87.in, src/testdir/test87.ok
|
|
Karsten Hopp |
fe41c0 |
|
|
Karsten Hopp |
fe41c0 |
|
|
Karsten Hopp |
fe41c0 |
*** ../vim-7.3.658/src/testdir/test86.in 2012-06-29 12:54:32.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
--- src/testdir/test86.in 2012-09-05 19:11:36.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
***************
|
|
Karsten Hopp |
fe41c0 |
*** 176,203 ****
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='[0.0, 0.0]'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:" pyeval()
|
|
Karsten Hopp |
fe41c0 |
:let l=pyeval('range(3)')
|
|
Karsten Hopp |
fe41c0 |
:$put =string(l)
|
|
Karsten Hopp |
fe41c0 |
:let d=pyeval('{"a": "b", "c": 1, "d": ["e"]}')
|
|
Karsten Hopp |
fe41c0 |
:$put =sort(items(d))
|
|
Karsten Hopp |
fe41c0 |
- :try
|
|
Karsten Hopp |
fe41c0 |
- : let undef=pyeval('undefined_name')
|
|
Karsten Hopp |
fe41c0 |
- :catch
|
|
Karsten Hopp |
fe41c0 |
- : $put =v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
- :endtry
|
|
Karsten Hopp |
fe41c0 |
- :try
|
|
Karsten Hopp |
fe41c0 |
- : let vim=pyeval('vim')
|
|
Karsten Hopp |
fe41c0 |
- :catch
|
|
Karsten Hopp |
fe41c0 |
- : $put =v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
- :endtry
|
|
Karsten Hopp |
fe41c0 |
:if has('float')
|
|
Karsten Hopp |
fe41c0 |
: let f=pyeval('0.0')
|
|
Karsten Hopp |
fe41c0 |
: $put =string(f)
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='0.0'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
:endfun
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:call Test()
|
|
Karsten Hopp |
fe41c0 |
--- 176,237 ----
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='[0.0, 0.0]'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
+ :let messages=[]
|
|
Karsten Hopp |
fe41c0 |
+ :py <
|
|
Karsten Hopp |
fe41c0 |
+ d=vim.bindeval('{}')
|
|
Karsten Hopp |
fe41c0 |
+ m=vim.bindeval('messages')
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']="\0"
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']=vim
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['a\0b']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d[b'a\0b']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+ EOF
|
|
Karsten Hopp |
fe41c0 |
+ :$put =messages
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:" pyeval()
|
|
Karsten Hopp |
fe41c0 |
:let l=pyeval('range(3)')
|
|
Karsten Hopp |
fe41c0 |
:$put =string(l)
|
|
Karsten Hopp |
fe41c0 |
:let d=pyeval('{"a": "b", "c": 1, "d": ["e"]}')
|
|
Karsten Hopp |
fe41c0 |
:$put =sort(items(d))
|
|
Karsten Hopp |
fe41c0 |
:if has('float')
|
|
Karsten Hopp |
fe41c0 |
: let f=pyeval('0.0')
|
|
Karsten Hopp |
fe41c0 |
: $put =string(f)
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='0.0'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
+ :" Invalid values:
|
|
Karsten Hopp |
fe41c0 |
+ :for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
|
Karsten Hopp |
fe41c0 |
+ : try
|
|
Karsten Hopp |
fe41c0 |
+ : let v=pyeval(e)
|
|
Karsten Hopp |
fe41c0 |
+ : catch
|
|
Karsten Hopp |
fe41c0 |
+ : let toput=e.":\t".v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
+ : $put =toput
|
|
Karsten Hopp |
fe41c0 |
+ : endtry
|
|
Karsten Hopp |
fe41c0 |
+ :endfor
|
|
Karsten Hopp |
fe41c0 |
:endfun
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:call Test()
|
|
Karsten Hopp |
fe41c0 |
*** ../vim-7.3.658/src/testdir/test86.ok 2012-06-29 12:54:32.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
--- src/testdir/test86.ok 2012-09-05 19:11:36.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
***************
|
|
Karsten Hopp |
fe41c0 |
*** 38,47 ****
|
|
Karsten Hopp |
fe41c0 |
Vim(python):E725:
|
|
Karsten Hopp |
fe41c0 |
Vim(python):E117:
|
|
Karsten Hopp |
fe41c0 |
[0.0, 0.0]
|
|
Karsten Hopp |
fe41c0 |
[0, 1, 2]
|
|
Karsten Hopp |
fe41c0 |
['a', 'b']
|
|
Karsten Hopp |
fe41c0 |
['c', 1]
|
|
Karsten Hopp |
fe41c0 |
['d', ['e']]
|
|
Karsten Hopp |
fe41c0 |
- Vim(let):E858:
|
|
Karsten Hopp |
fe41c0 |
- Vim(let):E859:
|
|
Karsten Hopp |
fe41c0 |
0.0
|
|
Karsten Hopp |
fe41c0 |
--- 38,55 ----
|
|
Karsten Hopp |
fe41c0 |
Vim(python):E725:
|
|
Karsten Hopp |
fe41c0 |
Vim(python):E117:
|
|
Karsten Hopp |
fe41c0 |
[0.0, 0.0]
|
|
Karsten Hopp |
fe41c0 |
+ IndexError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ ValueError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
[0, 1, 2]
|
|
Karsten Hopp |
fe41c0 |
['a', 'b']
|
|
Karsten Hopp |
fe41c0 |
['c', 1]
|
|
Karsten Hopp |
fe41c0 |
['d', ['e']]
|
|
Karsten Hopp |
fe41c0 |
0.0
|
|
Karsten Hopp |
fe41c0 |
+ "\0": Vim(let):E859:
|
|
Karsten Hopp |
fe41c0 |
+ {"\0": 1}: Vim(let):E859:
|
|
Karsten Hopp |
fe41c0 |
+ undefined_name: Vim(let):E858:
|
|
Karsten Hopp |
fe41c0 |
+ vim: Vim(let):E859:
|
|
Karsten Hopp |
fe41c0 |
*** ../vim-7.3.658/src/testdir/test87.in 2012-06-29 12:54:32.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
--- src/testdir/test87.in 2012-09-05 19:11:36.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
***************
|
|
Karsten Hopp |
fe41c0 |
*** 176,203 ****
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='[0.0, 0.0]'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:" py3eval()
|
|
Karsten Hopp |
fe41c0 |
:let l=py3eval('[0, 1, 2]')
|
|
Karsten Hopp |
fe41c0 |
:$put =string(l)
|
|
Karsten Hopp |
fe41c0 |
:let d=py3eval('{"a": "b", "c": 1, "d": ["e"]}')
|
|
Karsten Hopp |
fe41c0 |
:$put =sort(items(d))
|
|
Karsten Hopp |
fe41c0 |
- :try
|
|
Karsten Hopp |
fe41c0 |
- : let undef=py3eval('undefined_name')
|
|
Karsten Hopp |
fe41c0 |
- :catch
|
|
Karsten Hopp |
fe41c0 |
- : $put =v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
- :endtry
|
|
Karsten Hopp |
fe41c0 |
- :try
|
|
Karsten Hopp |
fe41c0 |
- : let vim=py3eval('vim')
|
|
Karsten Hopp |
fe41c0 |
- :catch
|
|
Karsten Hopp |
fe41c0 |
- : $put =v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
- :endtry
|
|
Karsten Hopp |
fe41c0 |
:if has('float')
|
|
Karsten Hopp |
fe41c0 |
: let f=py3eval('0.0')
|
|
Karsten Hopp |
fe41c0 |
: $put =string(f)
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='0.0'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
:endfun
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:call Test()
|
|
Karsten Hopp |
fe41c0 |
--- 176,237 ----
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='[0.0, 0.0]'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
+ :let messages=[]
|
|
Karsten Hopp |
fe41c0 |
+ :py3 <
|
|
Karsten Hopp |
fe41c0 |
+ d=vim.bindeval('{}')
|
|
Karsten Hopp |
fe41c0 |
+ m=vim.bindeval('messages')
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']="\0"
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['abc']=vim
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d['a\0b']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+
|
|
Karsten Hopp |
fe41c0 |
+ try:
|
|
Karsten Hopp |
fe41c0 |
+ d[b'a\0b']=1
|
|
Karsten Hopp |
fe41c0 |
+ except Exception as e:
|
|
Karsten Hopp |
fe41c0 |
+ m.extend([e.__class__.__name__])
|
|
Karsten Hopp |
fe41c0 |
+ EOF
|
|
Karsten Hopp |
fe41c0 |
+ :$put =messages
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:" py3eval()
|
|
Karsten Hopp |
fe41c0 |
:let l=py3eval('[0, 1, 2]')
|
|
Karsten Hopp |
fe41c0 |
:$put =string(l)
|
|
Karsten Hopp |
fe41c0 |
:let d=py3eval('{"a": "b", "c": 1, "d": ["e"]}')
|
|
Karsten Hopp |
fe41c0 |
:$put =sort(items(d))
|
|
Karsten Hopp |
fe41c0 |
:if has('float')
|
|
Karsten Hopp |
fe41c0 |
: let f=py3eval('0.0')
|
|
Karsten Hopp |
fe41c0 |
: $put =string(f)
|
|
Karsten Hopp |
fe41c0 |
:else
|
|
Karsten Hopp |
fe41c0 |
: $put ='0.0'
|
|
Karsten Hopp |
fe41c0 |
:endif
|
|
Karsten Hopp |
fe41c0 |
+ :" Invalid values:
|
|
Karsten Hopp |
fe41c0 |
+ :for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
|
Karsten Hopp |
fe41c0 |
+ : try
|
|
Karsten Hopp |
fe41c0 |
+ : let v=py3eval(e)
|
|
Karsten Hopp |
fe41c0 |
+ : catch
|
|
Karsten Hopp |
fe41c0 |
+ : let toput=e.":\t".v:exception[:13]
|
|
Karsten Hopp |
fe41c0 |
+ : $put =toput
|
|
Karsten Hopp |
fe41c0 |
+ : endtry
|
|
Karsten Hopp |
fe41c0 |
+ :endfor
|
|
Karsten Hopp |
fe41c0 |
:endfun
|
|
Karsten Hopp |
fe41c0 |
:"
|
|
Karsten Hopp |
fe41c0 |
:call Test()
|
|
Karsten Hopp |
fe41c0 |
*** ../vim-7.3.658/src/testdir/test87.ok 2012-06-29 12:54:32.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
--- src/testdir/test87.ok 2012-09-05 19:11:36.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
***************
|
|
Karsten Hopp |
fe41c0 |
*** 38,47 ****
|
|
Karsten Hopp |
fe41c0 |
Vim(py3):E725:
|
|
Karsten Hopp |
fe41c0 |
Vim(py3):E117:
|
|
Karsten Hopp |
fe41c0 |
[0.0, 0.0]
|
|
Karsten Hopp |
fe41c0 |
[0, 1, 2]
|
|
Karsten Hopp |
fe41c0 |
['a', 'b']
|
|
Karsten Hopp |
fe41c0 |
['c', 1]
|
|
Karsten Hopp |
fe41c0 |
['d', ['e']]
|
|
Karsten Hopp |
fe41c0 |
- Vim(let):E860:
|
|
Karsten Hopp |
fe41c0 |
- Vim(let):E861:
|
|
Karsten Hopp |
fe41c0 |
0.0
|
|
Karsten Hopp |
fe41c0 |
--- 38,55 ----
|
|
Karsten Hopp |
fe41c0 |
Vim(py3):E725:
|
|
Karsten Hopp |
fe41c0 |
Vim(py3):E117:
|
|
Karsten Hopp |
fe41c0 |
[0.0, 0.0]
|
|
Karsten Hopp |
fe41c0 |
+ IndexError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ ValueError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
+ TypeError
|
|
Karsten Hopp |
fe41c0 |
[0, 1, 2]
|
|
Karsten Hopp |
fe41c0 |
['a', 'b']
|
|
Karsten Hopp |
fe41c0 |
['c', 1]
|
|
Karsten Hopp |
fe41c0 |
['d', ['e']]
|
|
Karsten Hopp |
fe41c0 |
0.0
|
|
Karsten Hopp |
fe41c0 |
+ "\0": Vim(let):E861:
|
|
Karsten Hopp |
fe41c0 |
+ {"\0": 1}: Vim(let):E861:
|
|
Karsten Hopp |
fe41c0 |
+ undefined_name: Vim(let):E860:
|
|
Karsten Hopp |
fe41c0 |
+ vim: Vim(let):E861:
|
|
Karsten Hopp |
fe41c0 |
*** ../vim-7.3.658/src/version.c 2012-09-05 19:09:06.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
--- src/version.c 2012-09-05 19:16:52.000000000 +0200
|
|
Karsten Hopp |
fe41c0 |
***************
|
|
Karsten Hopp |
fe41c0 |
*** 721,722 ****
|
|
Karsten Hopp |
fe41c0 |
--- 721,724 ----
|
|
Karsten Hopp |
fe41c0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fe41c0 |
+ /**/
|
|
Karsten Hopp |
fe41c0 |
+ 659,
|
|
Karsten Hopp |
fe41c0 |
/**/
|
|
Karsten Hopp |
fe41c0 |
|
|
Karsten Hopp |
fe41c0 |
--
|
|
Karsten Hopp |
fe41c0 |
DEAD PERSON: I don't want to go in the cart!
|
|
Karsten Hopp |
fe41c0 |
CUSTOMER: Oh, don't be such a baby.
|
|
Karsten Hopp |
fe41c0 |
MORTICIAN: I can't take him...
|
|
Karsten Hopp |
fe41c0 |
DEAD PERSON: I feel fine!
|
|
Karsten Hopp |
fe41c0 |
CUSTOMER: Oh, do us a favor...
|
|
Karsten Hopp |
fe41c0 |
MORTICIAN: I can't.
|
|
Karsten Hopp |
fe41c0 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
fe41c0 |
|
|
Karsten Hopp |
fe41c0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fe41c0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fe41c0 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
fe41c0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|