0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-11-04 12:23:06 +01:00
parent 9c13f76275
commit 64ffa9b5fb
4 changed files with 33 additions and 19 deletions

View File

@@ -545,13 +545,12 @@ func Test_python3_list()
call AssertException(["py3 t = vim.eval('[test_null_list()]')"],
\ 'Vim(py3):SystemError: <built-in function eval> returned NULL without setting an error')
" Try to bind a null List variable
" Try to bind a null List variable (works because an empty list is used)
let cmds =<< trim END
let l = test_null_list()
py3 ll = vim.bindeval('l')
END
call AssertException(cmds,
\ 'Vim(py3):SystemError: <built-in function bindeval> returned NULL without setting an error')
call AssertException(cmds, '')
let l = []
py3 l = vim.bindeval('l')