summaryrefslogtreecommitdiff
path: root/uvim/src/testdir/test_vim9_python3.vim
blob: 42a112a7d8bfb1abde679726d5cddc13fc7fe71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

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