| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.1166 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.1166 |
| Problem: Loading Python modules is not tested. |
| Solution: Enable commented-out tests, add missing files. (ZyX) |
| Files: src/testdir/test86.in, src/testdir/test86.ok, |
| src/testdir/test87.in, src/testdir/test87.ok, |
| src/testdir/python2/module.py, src/testdir/python3/module.py, |
| src/testdir/pythonx/module.py, src/testdir/pythonx/modulex.py, |
| Filelist |
| |
| |
| |
| |
| |
| *** 1069,1081 **** |
| 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 exceptions |
| :fun Exe(e) |
| --- 1069,1081 ---- |
| ee('vim.current.xxx = True') |
| 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) |
| |
| |
| |
| *** 1083,1088 **** |
| --- 1083,1089 ---- |
| 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',)) |
| |
| |
| |
| *** 1036,1048 **** |
| 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 exceptions |
| :fun Exe(e) |
| --- 1036,1048 ---- |
| ee('vim.current.xxx = True') |
| 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) |
| |
| |
| |
| *** 1092,1097 **** |
| --- 1092,1098 ---- |
| 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',)) |
| |
| |
| |
| |
| |
| + dir = '2' |
| |
| |
| |
| |
| |
| + dir = '3' |
| |
| |
| |
| |
| |
| + dir = 'x' |
| |
| |
| |
| |
| |
| + ddir = 'xx' |
| |
| |
| |
| *** 84,89 **** |
| --- 84,92 ---- |
| 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 \ |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 1166, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 146. You experience ACTUAL physical withdrawal symptoms when away |
| from your 'puter and the net. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |