]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1166 v7.3.1166
authorBram Moolenaar <Bram@vim.org>
Tue, 11 Jun 2013 16:48:21 +0000 (18:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 11 Jun 2013 16:48:21 +0000 (18:48 +0200)
Problem:    Loading Python modules is not tested.
Solution:   Enable commented-out tests, add missing files. (ZyX)

.gitignore
Filelist
src/testdir/python2/module.py [new file with mode: 0644]
src/testdir/python3/module.py [new file with mode: 0644]
src/testdir/pythonx/module.py [new file with mode: 0644]
src/testdir/pythonx/modulex.py [new file with mode: 0644]
src/testdir/test86.in
src/testdir/test86.ok
src/testdir/test87.in
src/testdir/test87.ok
src/version.c

index d4af3a2f098ce91077e1a4e5024d67a8dce2ddd7..9caf09a03cae52a1fd5bc2fec9b969f8b01dc15f 100644 (file)
@@ -42,6 +42,7 @@ gvimext.lib
 *.mo
 *.swp
 *~
+*.pyc
 src/po/vim.pot
 
 # Generated by "make test"
index ee5ad8f34bb0bd73b24eb6bab25d08091b55e331..1dea3f168bd5d5d9c24b9c372c614cd46cef4b2d 100644 (file)
--- a/Filelist
+++ b/Filelist
@@ -84,6 +84,9 @@ SRC_ALL =     \
                src/testdir/test49.vim \
                src/testdir/test60.vim \
                src/testdir/test83-tags? \
+               src/testdir/python2/*.py \
+               src/testdir/python3/*.py \
+               src/testdir/pythonx/*.py \
                src/proto.h \
                src/proto/blowfish.pro \
                src/proto/buffer.pro \
diff --git a/src/testdir/python2/module.py b/src/testdir/python2/module.py
new file mode 100644 (file)
index 0000000..5f0a6f0
--- /dev/null
@@ -0,0 +1 @@
+dir = '2'
diff --git a/src/testdir/python3/module.py b/src/testdir/python3/module.py
new file mode 100644 (file)
index 0000000..1ccfb09
--- /dev/null
@@ -0,0 +1 @@
+dir = '3'
diff --git a/src/testdir/pythonx/module.py b/src/testdir/pythonx/module.py
new file mode 100644 (file)
index 0000000..6bf5a64
--- /dev/null
@@ -0,0 +1 @@
+dir = 'x'
diff --git a/src/testdir/pythonx/modulex.py b/src/testdir/pythonx/modulex.py
new file mode 100644 (file)
index 0000000..ec6a706
--- /dev/null
@@ -0,0 +1 @@
+ddir = 'xx'
index f2248c477e8b9a55bc742ce0194c6ac702741d59..26c7fe21783ee3f6257d7fc0d22c93a88b8d464e 100644 (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)
index 3c22bf63d341b06d6fd0de4655185b0c5682d9ae..145979ff5342cdf4243c4cb5838399e15285e487 100644 (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',))
index 986565e43aa105b9eb3163dfdc70efb3353517e1..7a3d583590943ad7991f99d8ff1b822b9a5db21f 100644 (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)
index 01ff127ec28f7dc988748ef6fc722e85b7e372c4..31c7df4b6654c595181229237a4fcefdcbe52202 100644 (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',))
index 8480261a3f464296882ba006d4b12512a4b802bd..037b0a452986ea9fefe89d2eb53451f235146588 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1166,
 /**/
     1165,
 /**/