Files
vim-mirror/src/testdir/test_vim9_python3.vim
T
Christian Brabandt eb380b991c patch 9.1.1525: tests: testdir/ is a bit messy
Problem:  tests: testdir is a bit messy
Solution: move test scripts into testdir/util/ directory

src/testdir/ has become a dumping ground mixing test cases with utility
functions. Let's fix this by moving all utility functions into the
testdir/util/ directory

Also a few related changes had to be done:
- Update Filelist
- update README.txt and mention the new directory layout
- fix shadowbuild by linking the util directory into the shadow dir

closes: #17677

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-07-07 20:53:55 +02:00

17 lines
373 B
VimL

import './util/vim9.vim' as v9
CheckFeature python3
def Test_python3_py3eval_locals()
var lines =<< trim EOF
var s = 'string'
var d = {'s': s}
assert_equal('string', py3eval('s', {'s': s}))
py3eval('d.update({"s": "new"})', {'d': d})
assert_equal('new', d['s'])
EOF
v9.CheckDefAndScriptSuccess(lines)
enddef
" vim: shiftwidth=2 sts=2 expandtab