blob: 697b368035f5b468fa2cd8c9d91bd447e6e80e97 [file] [log] [blame]
Ben Jacksonea19e782024-11-06 21:50:05 +01001
2source check.vim
3import './vim9.vim' as v9
4CheckFeature python3
5
6def Test_python3_py3eval_locals()
7 var lines =<< trim EOF
8 var s = 'string'
9 var d = {'s': s}
10 assert_equal('string', py3eval('s', {'s': s}))
11 py3eval('d.update({"s": "new"})', {'d': d})
12 assert_equal('new', d['s'])
13 EOF
14 v9.CheckDefAndScriptSuccess(lines)
15enddef
16
17" vim: shiftwidth=2 sts=2 expandtab