To: vim_dev@googlegroups.com Subject: Patch 7.3.659 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.3.659 Problem: Recent Python changes are not tested. Solution: Add tests for Python bindings. (ZyX) Files: src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok *** ../vim-7.3.658/src/testdir/test86.in 2012-06-29 12:54:32.000000000 +0200 --- src/testdir/test86.in 2012-09-05 19:11:36.000000000 +0200 *************** *** 176,203 **** :else : $put ='[0.0, 0.0]' :endif :" :" pyeval() :let l=pyeval('range(3)') :$put =string(l) :let d=pyeval('{"a": "b", "c": 1, "d": ["e"]}') :$put =sort(items(d)) - :try - : let undef=pyeval('undefined_name') - :catch - : $put =v:exception[:13] - :endtry - :try - : let vim=pyeval('vim') - :catch - : $put =v:exception[:13] - :endtry :if has('float') : let f=pyeval('0.0') : $put =string(f) :else : $put ='0.0' :endif :endfun :" :call Test() --- 176,237 ---- :else : $put ='[0.0, 0.0]' :endif + :let messages=[] + :py <