Mercurial > vim
comparison src/testdir/test_python2.vim @ 22806:690b84a6a7ce v8.2.1951
patch 8.2.1951: test for list and dict fails
Commit: https://github.com/vim/vim/commit/64ffa9b5fb34adb0b20fc22e8127604274bc3010
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 4 12:23:06 2020 +0100
patch 8.2.1951: test for list and dict fails
Problem: Test for list and dict fails.
Solution: Adjust for using an empty list/dict for a null one.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Nov 2020 12:30:03 +0100 |
parents | 2b6d696b063d |
children | b545334ae654 |
comparison
equal
deleted
inserted
replaced
22805:4ee5efad0df5 | 22806:690b84a6a7ce |
---|---|
351 | 351 |
352 " Try to convert a List with a null List item | 352 " Try to convert a List with a null List item |
353 call AssertException(["py t = vim.eval('[test_null_list()]')"], | 353 call AssertException(["py t = vim.eval('[test_null_list()]')"], |
354 \ 'Vim(python):SystemError: error return without exception set') | 354 \ 'Vim(python):SystemError: error return without exception set') |
355 | 355 |
356 " Try to bind a null List variable | 356 " Try to bind a null List variable (works because an empty list is used) |
357 let cmds =<< trim END | 357 let cmds =<< trim END |
358 let l = test_null_list() | 358 let l = test_null_list() |
359 py ll = vim.bindeval('l') | 359 py ll = vim.bindeval('l') |
360 END | 360 END |
361 call AssertException(cmds, 'Vim(python):SystemError: error return without exception set') | 361 call AssertException(cmds, '') |
362 | 362 |
363 let l = [] | 363 let l = [] |
364 py l = vim.bindeval('l') | 364 py l = vim.bindeval('l') |
365 py f = vim.bindeval('function("strlen")') | 365 py f = vim.bindeval('function("strlen")') |
366 " Extending List directly with different types | 366 " Extending List directly with different types |