Karsten Hopp 0734a7
To: vim_dev@googlegroups.com
Karsten Hopp 0734a7
Subject: Patch 7.3.1250
Karsten Hopp 0734a7
Fcc: outbox
Karsten Hopp 0734a7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0734a7
Mime-Version: 1.0
Karsten Hopp 0734a7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0734a7
Content-Transfer-Encoding: 8bit
Karsten Hopp 0734a7
------------
Karsten Hopp 0734a7
Karsten Hopp 0734a7
Patch 7.3.1250
Karsten Hopp 0734a7
Problem:    Python tests fail on MS-Windows.
Karsten Hopp 0734a7
Solution:   Change backslashes to slashes. (Taro Muraoka)
Karsten Hopp 0734a7
Files:	    src/testdir/test86.in, src/testdir/test87.in
Karsten Hopp 0734a7
Karsten Hopp 0734a7
Karsten Hopp 0734a7
*** ../vim-7.3.1249/src/testdir/test86.in	2013-06-23 16:35:32.000000000 +0200
Karsten Hopp 0734a7
--- src/testdir/test86.in	2013-06-26 21:43:04.000000000 +0200
Karsten Hopp 0734a7
***************
Karsten Hopp 0734a7
*** 1221,1232 ****
Karsten Hopp 0734a7
  vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp 0734a7
  l = []
Karsten Hopp 0734a7
  def callback(path):
Karsten Hopp 0734a7
!     l.append(path[-len('/testdir'):])
Karsten Hopp 0734a7
  vim.foreach_rtp(callback)
Karsten Hopp 0734a7
  cb.append(repr(l))
Karsten Hopp 0734a7
  del l
Karsten Hopp 0734a7
  def callback(path):
Karsten Hopp 0734a7
!     return path[-len('/testdir'):]
Karsten Hopp 0734a7
  cb.append(repr(vim.foreach_rtp(callback)))
Karsten Hopp 0734a7
  del callback
Karsten Hopp 0734a7
  from module import dir as d
Karsten Hopp 0734a7
--- 1221,1232 ----
Karsten Hopp 0734a7
  vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
Karsten Hopp 0734a7
  l = []
Karsten Hopp 0734a7
  def callback(path):
Karsten Hopp 0734a7
!     l.append(path[-len('/testdir'):].replace(os.path.sep, '/'))
Karsten Hopp 0734a7
  vim.foreach_rtp(callback)
Karsten Hopp 0734a7
  cb.append(repr(l))
Karsten Hopp 0734a7
  del l
Karsten Hopp 0734a7
  def callback(path):
Karsten Hopp 0734a7
!     return path[-len('/testdir'):].replace(os.path.sep, '/')
Karsten Hopp 0734a7
  cb.append(repr(vim.foreach_rtp(callback)))
Karsten Hopp 0734a7
  del callback
Karsten Hopp 0734a7
  from module import dir as d
Karsten Hopp 0734a7
***************
Karsten Hopp 0734a7
*** 1239,1247 ****
Karsten Hopp 0734a7
  import topmodule as tm
Karsten Hopp 0734a7
  import topmodule.submodule as tms
Karsten Hopp 0734a7
  import topmodule.submodule.subsubmodule.subsubsubmodule as tmsss
Karsten Hopp 0734a7
! cb.append(tm.__file__.replace('.pyc', '.py')[-len('modulex/topmodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tms.__file__.replace('.pyc', '.py')[-len('modulex/topmodule/submodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tmsss.__file__.replace('.pyc', '.py')[-len('modulex/topmodule/submodule/subsubmodule/subsubsubmodule.py'):])
Karsten Hopp 0734a7
  del before
Karsten Hopp 0734a7
  del after
Karsten Hopp 0734a7
  del d
Karsten Hopp 0734a7
--- 1239,1247 ----
Karsten Hopp 0734a7
  import topmodule as tm
Karsten Hopp 0734a7
  import topmodule.submodule as tms
Karsten Hopp 0734a7
  import topmodule.submodule.subsubmodule.subsubsubmodule as tmsss
Karsten Hopp 0734a7
! cb.append(tm.__file__.replace('.pyc', '.py').replace(os.path.sep, '/')[-len('modulex/topmodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tms.__file__.replace('.pyc', '.py').replace(os.path.sep, '/')[-len('modulex/topmodule/submodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tmsss.__file__.replace('.pyc', '.py').replace(os.path.sep, '/')[-len('modulex/topmodule/submodule/subsubmodule/subsubsubmodule.py'):])
Karsten Hopp 0734a7
  del before
Karsten Hopp 0734a7
  del after
Karsten Hopp 0734a7
  del d
Karsten Hopp 0734a7
*** ../vim-7.3.1249/src/testdir/test87.in	2013-06-23 16:35:32.000000000 +0200
Karsten Hopp 0734a7
--- src/testdir/test87.in	2013-06-26 21:44:25.000000000 +0200
Karsten Hopp 0734a7
***************
Karsten Hopp 0734a7
*** 1188,1196 ****
Karsten Hopp 0734a7
  import topmodule as tm
Karsten Hopp 0734a7
  import topmodule.submodule as tms
Karsten Hopp 0734a7
  import topmodule.submodule.subsubmodule.subsubsubmodule as tmsss
Karsten Hopp 0734a7
! cb.append(tm.__file__[-len('modulex/topmodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tms.__file__[-len('modulex/topmodule/submodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tmsss.__file__[-len('modulex/topmodule/submodule/subsubmodule/subsubsubmodule.py'):])
Karsten Hopp 0734a7
  del before
Karsten Hopp 0734a7
  del after
Karsten Hopp 0734a7
  del d
Karsten Hopp 0734a7
--- 1188,1196 ----
Karsten Hopp 0734a7
  import topmodule as tm
Karsten Hopp 0734a7
  import topmodule.submodule as tms
Karsten Hopp 0734a7
  import topmodule.submodule.subsubmodule.subsubsubmodule as tmsss
Karsten Hopp 0734a7
! cb.append(tm.__file__.replace(os.path.sep, '/')[-len('modulex/topmodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tms.__file__.replace(os.path.sep, '/')[-len('modulex/topmodule/submodule/__init__.py'):])
Karsten Hopp 0734a7
! cb.append(tmsss.__file__.replace(os.path.sep, '/')[-len('modulex/topmodule/submodule/subsubmodule/subsubsubmodule.py'):])
Karsten Hopp 0734a7
  del before
Karsten Hopp 0734a7
  del after
Karsten Hopp 0734a7
  del d
Karsten Hopp 0734a7
*** ../vim-7.3.1249/src/version.c	2013-06-26 20:04:28.000000000 +0200
Karsten Hopp 0734a7
--- src/version.c	2013-06-26 21:44:00.000000000 +0200
Karsten Hopp 0734a7
***************
Karsten Hopp 0734a7
*** 730,731 ****
Karsten Hopp 0734a7
--- 730,733 ----
Karsten Hopp 0734a7
  {   /* Add new patch number below this line */
Karsten Hopp 0734a7
+ /**/
Karsten Hopp 0734a7
+     1250,
Karsten Hopp 0734a7
  /**/
Karsten Hopp 0734a7
Karsten Hopp 0734a7
-- 
Karsten Hopp 0734a7
You were lucky to have a LAKE! There were a hundred and sixty of
Karsten Hopp 0734a7
us living in a small shoebox in the middle of the road.
Karsten Hopp 0734a7
Karsten Hopp 0734a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0734a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0734a7
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0734a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///