summaryrefslogtreecommitdiff
path: root/src/testdir/test_partial.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-24 21:58:12 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-24 21:58:12 +0100
commit4c90861e9f864eab94f043c432acff508396ed62 (patch)
tree3dd833ecd38ad0b11bacb07d250469e439c2249f /src/testdir/test_partial.vim
parentc5fbe8af4cd80789f831b78aa44ff0b238138769 (diff)
downloadvim-git-4c90861e9f864eab94f043c432acff508396ed62.tar.gz
patch 7.4.1646v7.4.1646
Problem: Using Python vim.bindeval() on a partial doesn't work. (Nikolai Pavlov) Solution: Add VAR_PARTIAL support in Python.
Diffstat (limited to 'src/testdir/test_partial.vim')
-rw-r--r--src/testdir/test_partial.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_partial.vim b/src/testdir/test_partial.vim
index 1fe67eabc..08958de83 100644
--- a/src/testdir/test_partial.vim
+++ b/src/testdir/test_partial.vim
@@ -206,3 +206,17 @@ func Test_redefine_dict_func()
call assert_true(v:errmsg, v:exception)
endtry
endfunc
+
+func Test_bind_in_python()
+ if has('python')
+ let g:d = {}
+ function g:d.test2()
+ endfunction
+ python import vim
+ try
+ call assert_equal(pyeval('vim.bindeval("g:d.test2")'), g:d.test2)
+ catch
+ call assert_true(v:false, v:exception)
+ endtry
+ endif
+endfunc