Karsten Hopp f7c256
To: vim_dev@googlegroups.com
Karsten Hopp f7c256
Subject: Patch 7.3.1166
Karsten Hopp f7c256
Fcc: outbox
Karsten Hopp f7c256
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f7c256
Mime-Version: 1.0
Karsten Hopp f7c256
Content-Type: text/plain; charset=UTF-8
Karsten Hopp f7c256
Content-Transfer-Encoding: 8bit
Karsten Hopp f7c256
------------
Karsten Hopp f7c256
Karsten Hopp f7c256
Patch 7.3.1166
Karsten Hopp f7c256
Problem:    Loading Python modules is not tested.
Karsten Hopp f7c256
Solution:   Enable commented-out tests, add missing files. (ZyX)
Karsten Hopp f7c256
Files:	    src/testdir/test86.in, src/testdir/test86.ok,
Karsten Hopp f7c256
	    src/testdir/test87.in, src/testdir/test87.ok,
Karsten Hopp f7c256
	    src/testdir/python2/module.py, src/testdir/python3/module.py,
Karsten Hopp f7c256
	    src/testdir/pythonx/module.py, src/testdir/pythonx/modulex.py,
Karsten Hopp f7c256
	    Filelist
Karsten Hopp f7c256
Karsten Hopp f7c256
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/test86.in	2013-06-10 21:27:18.000000000 +0200
Karsten Hopp f7c256
--- src/testdir/test86.in	2013-06-11 17:42:17.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 1069,1081 ****
Karsten Hopp f7c256
  ee('vim.current.xxx = True')
Karsten Hopp f7c256
  EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
! :" Test import  TODO: BROKEN
Karsten Hopp f7c256
! :"py << EOF
Karsten Hopp f7c256
! :"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp f7c256
! :"from module import dir as d
Karsten Hopp f7c256
! :"from modulex import ddir
Karsten Hopp f7c256
! :"cb.append(d + ',' + ddir)
Karsten Hopp f7c256
! :"EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
  :" Test exceptions
Karsten Hopp f7c256
  :fun Exe(e)
Karsten Hopp f7c256
--- 1069,1081 ----
Karsten Hopp f7c256
  ee('vim.current.xxx = True')
Karsten Hopp f7c256
  EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
! :" Test import
Karsten Hopp f7c256
! py << EOF
Karsten Hopp f7c256
! vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp f7c256
! from module import dir as d
Karsten Hopp f7c256
! from modulex import ddir
Karsten Hopp f7c256
! cb.append(d + ',' + ddir)
Karsten Hopp f7c256
! EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
  :" Test exceptions
Karsten Hopp f7c256
  :fun Exe(e)
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/test86.ok	2013-06-02 18:54:16.000000000 +0200
Karsten Hopp f7c256
--- src/testdir/test86.ok	2013-06-11 17:42:26.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 1083,1088 ****
Karsten Hopp f7c256
--- 1083,1089 ----
Karsten Hopp f7c256
  vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
Karsten Hopp f7c256
  vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
Karsten Hopp f7c256
  vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp f7c256
+ 2,xx
Karsten Hopp f7c256
  vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Karsten Hopp f7c256
  Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
Karsten Hopp f7c256
  vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/test87.in	2013-06-10 21:27:18.000000000 +0200
Karsten Hopp f7c256
--- src/testdir/test87.in	2013-06-11 17:42:38.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 1036,1048 ****
Karsten Hopp f7c256
  ee('vim.current.xxx = True')
Karsten Hopp f7c256
  EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
! :" Test import  TODO: BROKEN
Karsten Hopp f7c256
! :"py3 << EOF
Karsten Hopp f7c256
! :"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp f7c256
! :"from module import dir as d
Karsten Hopp f7c256
! :"from modulex import ddir
Karsten Hopp f7c256
! :"cb.append(d + ',' + ddir)
Karsten Hopp f7c256
! :"EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
  :" Test exceptions
Karsten Hopp f7c256
  :fun Exe(e)
Karsten Hopp f7c256
--- 1036,1048 ----
Karsten Hopp f7c256
  ee('vim.current.xxx = True')
Karsten Hopp f7c256
  EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
! :" Test import
Karsten Hopp f7c256
! py3 << EOF
Karsten Hopp f7c256
! vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp f7c256
! from module import dir as d
Karsten Hopp f7c256
! from modulex import ddir
Karsten Hopp f7c256
! cb.append(d + ',' + ddir)
Karsten Hopp f7c256
! EOF
Karsten Hopp f7c256
  :"
Karsten Hopp f7c256
  :" Test exceptions
Karsten Hopp f7c256
  :fun Exe(e)
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/test87.ok	2013-06-02 18:54:16.000000000 +0200
Karsten Hopp f7c256
--- src/testdir/test87.ok	2013-06-11 17:42:55.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 1092,1097 ****
Karsten Hopp f7c256
--- 1092,1098 ----
Karsten Hopp f7c256
  vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
Karsten Hopp f7c256
  vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
Karsten Hopp f7c256
  vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Karsten Hopp f7c256
+ 3,xx
Karsten Hopp f7c256
  vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Karsten Hopp f7c256
  Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
Karsten Hopp f7c256
  vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/python2/module.py	1970-01-01 01:00:00.000000000 +0100
Karsten Hopp f7c256
--- src/testdir/python2/module.py	2013-06-11 17:39:40.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 0 ****
Karsten Hopp f7c256
--- 1 ----
Karsten Hopp f7c256
+ dir = '2'
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/python3/module.py	1970-01-01 01:00:00.000000000 +0100
Karsten Hopp f7c256
--- src/testdir/python3/module.py	2013-06-11 17:39:40.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 0 ****
Karsten Hopp f7c256
--- 1 ----
Karsten Hopp f7c256
+ dir = '3'
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/pythonx/module.py	1970-01-01 01:00:00.000000000 +0100
Karsten Hopp f7c256
--- src/testdir/pythonx/module.py	2013-06-11 17:39:40.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 0 ****
Karsten Hopp f7c256
--- 1 ----
Karsten Hopp f7c256
+ dir = 'x'
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/testdir/pythonx/modulex.py	1970-01-01 01:00:00.000000000 +0100
Karsten Hopp f7c256
--- src/testdir/pythonx/modulex.py	2013-06-11 17:39:40.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 0 ****
Karsten Hopp f7c256
--- 1 ----
Karsten Hopp f7c256
+ ddir = 'xx'
Karsten Hopp f7c256
*** ../vim-7.3.1165/Filelist	2013-05-19 19:16:25.000000000 +0200
Karsten Hopp f7c256
--- Filelist	2013-06-11 18:45:13.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 84,89 ****
Karsten Hopp f7c256
--- 84,92 ----
Karsten Hopp f7c256
  		src/testdir/test49.vim \
Karsten Hopp f7c256
  		src/testdir/test60.vim \
Karsten Hopp f7c256
  		src/testdir/test83-tags? \
Karsten Hopp f7c256
+ 		src/testdir/python2/*.py \
Karsten Hopp f7c256
+ 		src/testdir/python3/*.py \
Karsten Hopp f7c256
+ 		src/testdir/pythonx/*.py \
Karsten Hopp f7c256
  		src/proto.h \
Karsten Hopp f7c256
  		src/proto/blowfish.pro \
Karsten Hopp f7c256
  		src/proto/buffer.pro \
Karsten Hopp f7c256
*** ../vim-7.3.1165/src/version.c	2013-06-11 18:42:28.000000000 +0200
Karsten Hopp f7c256
--- src/version.c	2013-06-11 18:44:06.000000000 +0200
Karsten Hopp f7c256
***************
Karsten Hopp f7c256
*** 730,731 ****
Karsten Hopp f7c256
--- 730,733 ----
Karsten Hopp f7c256
  {   /* Add new patch number below this line */
Karsten Hopp f7c256
+ /**/
Karsten Hopp f7c256
+     1166,
Karsten Hopp f7c256
  /**/
Karsten Hopp f7c256
Karsten Hopp f7c256
-- 
Karsten Hopp f7c256
hundred-and-one symptoms of being an internet addict:
Karsten Hopp f7c256
146. You experience ACTUAL physical withdrawal symptoms when away
Karsten Hopp f7c256
     from your 'puter and the net.
Karsten Hopp f7c256
Karsten Hopp f7c256
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f7c256
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f7c256
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp f7c256
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///