0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -05:00

updated for version 7.3.1166

Problem:    Loading Python modules is not tested.
Solution:   Enable commented-out tests, add missing files. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-06-11 18:48:21 +02:00
parent 16619a235b
commit a9f2220176
11 changed files with 26 additions and 14 deletions

View File

@@ -0,0 +1 @@
dir = '2'

View File

@@ -0,0 +1 @@
dir = '3'

View File

@@ -0,0 +1 @@
dir = 'x'

View File

@@ -0,0 +1 @@
ddir = 'xx'

View File

@@ -1069,13 +1069,13 @@ ee('vim.current.tabpage = True')
ee('vim.current.xxx = True')
EOF
:"
:" Test import TODO: BROKEN
:"py << EOF
:"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
:"from module import dir as d
:"from modulex import ddir
:"cb.append(d + ',' + ddir)
:"EOF
:" Test import
py << EOF
vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
from module import dir as d
from modulex import ddir
cb.append(d + ',' + ddir)
EOF
:"
:" Test exceptions
:fun Exe(e)

View File

@@ -1083,6 +1083,7 @@ vim.current.buffer = True:(<type 'exceptions.TypeError'>, TypeError('expected vi
vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
2,xx
vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))

View File

@@ -1036,13 +1036,13 @@ ee('vim.current.tabpage = True')
ee('vim.current.xxx = True')
EOF
:"
:" Test import TODO: BROKEN
:"py3 << EOF
:"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
:"from module import dir as d
:"from modulex import ddir
:"cb.append(d + ',' + ddir)
:"EOF
:" Test import
py3 << EOF
vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
from module import dir as d
from modulex import ddir
cb.append(d + ',' + ddir)
EOF
:"
:" Test exceptions
:fun Exe(e)

View File

@@ -1092,6 +1092,7 @@ vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer o
vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
3,xx
vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))