summaryrefslogtreecommitdiff
path: root/uvim/src/testdir/test_mnv9_python3.mnv
blob: 43f49612b7beebf8849c450634284836edfaf5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

import './util/mnv9.mnv' 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

" mnv: shiftwidth=2 sts=2 expandtab