Karsten Hopp 3cec34
To: vim_dev@googlegroups.com
Karsten Hopp 3cec34
Subject: Patch 7.3.1080
Karsten Hopp 3cec34
Fcc: outbox
Karsten Hopp 3cec34
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3cec34
Mime-Version: 1.0
Karsten Hopp 3cec34
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3cec34
Content-Transfer-Encoding: 8bit
Karsten Hopp 3cec34
------------
Karsten Hopp 3cec34
Karsten Hopp 3cec34
Patch 7.3.1080
Karsten Hopp 3cec34
Problem:    Test 86 fails.
Karsten Hopp 3cec34
Solution:   Comment out the parts that don't work.  Make it pass on 32 bit
Karsten Hopp 3cec34
	    systems.
Karsten Hopp 3cec34
Files:	    src/testdir/test86.in, src/testdir/test86.ok
Karsten Hopp 3cec34
Karsten Hopp 3cec34
Karsten Hopp 3cec34
*** ../vim-7.3.1079/src/testdir/test86.in	2013-05-30 15:38:20.000000000 +0200
Karsten Hopp 3cec34
--- src/testdir/test86.in	2013-05-31 18:59:05.000000000 +0200
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 8,15 ****
Karsten Hopp 3cec34
  STARTTEST
Karsten Hopp 3cec34
  :so small.vim
Karsten Hopp 3cec34
  :set encoding=latin1
Karsten Hopp 3cec34
- :" HACK: currently crashes, skip the test
Karsten Hopp 3cec34
- :e! test.ok | wq! test.out
Karsten Hopp 3cec34
  :if !has('python') | e! test.ok | wq! test.out | endif
Karsten Hopp 3cec34
  :lang C
Karsten Hopp 3cec34
  :py import vim
Karsten Hopp 3cec34
--- 8,13 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 915,921 ****
Karsten Hopp 3cec34
  cb.append(">> OutputWriteLines")
Karsten Hopp 3cec34
  ee('sys.stdout.writelines(None)')
Karsten Hopp 3cec34
  ee('sys.stdout.writelines([1])')
Karsten Hopp 3cec34
! iter_test('sys.stdout.writelines(%s)')
Karsten Hopp 3cec34
  cb.append("> VimCommand")
Karsten Hopp 3cec34
  ee('vim.command(1)')
Karsten Hopp 3cec34
  #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 3cec34
--- 913,919 ----
Karsten Hopp 3cec34
  cb.append(">> OutputWriteLines")
Karsten Hopp 3cec34
  ee('sys.stdout.writelines(None)')
Karsten Hopp 3cec34
  ee('sys.stdout.writelines([1])')
Karsten Hopp 3cec34
! #iter_test('sys.stdout.writelines(%s)')
Karsten Hopp 3cec34
  cb.append("> VimCommand")
Karsten Hopp 3cec34
  ee('vim.command(1)')
Karsten Hopp 3cec34
  #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 955,961 ****
Karsten Hopp 3cec34
  cb.append(">>> iter")
Karsten Hopp 3cec34
  ee('d.update(FailingMapping())')
Karsten Hopp 3cec34
  ee('d.update([FailingIterNext()])')
Karsten Hopp 3cec34
! iter_test('d.update(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('d.update(%s)')
Karsten Hopp 3cec34
  stringtochars_test('d.update(((%s, 0),))')
Karsten Hopp 3cec34
  convertfrompyobject_test('d.update((("a", %s),))')
Karsten Hopp 3cec34
--- 953,959 ----
Karsten Hopp 3cec34
  cb.append(">>> iter")
Karsten Hopp 3cec34
  ee('d.update(FailingMapping())')
Karsten Hopp 3cec34
  ee('d.update([FailingIterNext()])')
Karsten Hopp 3cec34
! #iter_test('d.update(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('d.update(%s)')
Karsten Hopp 3cec34
  stringtochars_test('d.update(((%s, 0),))')
Karsten Hopp 3cec34
  convertfrompyobject_test('d.update((("a", %s),))')
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 967,973 ****
Karsten Hopp 3cec34
  cb.append(">> ListConstructor")
Karsten Hopp 3cec34
  ee('vim.List(1, 2)')
Karsten Hopp 3cec34
  ee('vim.List(a=1)')
Karsten Hopp 3cec34
! iter_test('vim.List(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('vim.List([%s])')
Karsten Hopp 3cec34
  cb.append(">> ListItem")
Karsten Hopp 3cec34
  ee('l[1000]')
Karsten Hopp 3cec34
--- 965,971 ----
Karsten Hopp 3cec34
  cb.append(">> ListConstructor")
Karsten Hopp 3cec34
  ee('vim.List(1, 2)')
Karsten Hopp 3cec34
  ee('vim.List(a=1)')
Karsten Hopp 3cec34
! #iter_test('vim.List(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('vim.List([%s])')
Karsten Hopp 3cec34
  cb.append(">> ListItem")
Karsten Hopp 3cec34
  ee('l[1000]')
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 976,985 ****
Karsten Hopp 3cec34
  ee('l[1000] = 3')
Karsten Hopp 3cec34
  cb.append(">> ListAssSlice")
Karsten Hopp 3cec34
  ee('ll[1:100] = "abc"')
Karsten Hopp 3cec34
! iter_test('l[:] = %s')
Karsten Hopp 3cec34
  convertfrompyobject_test('l[:] = [%s]')
Karsten Hopp 3cec34
  cb.append(">> ListConcatInPlace")
Karsten Hopp 3cec34
! iter_test('l.extend(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('l.extend([%s])')
Karsten Hopp 3cec34
  cb.append(">> ListSetattr")
Karsten Hopp 3cec34
  ee('del l.locked')
Karsten Hopp 3cec34
--- 974,983 ----
Karsten Hopp 3cec34
  ee('l[1000] = 3')
Karsten Hopp 3cec34
  cb.append(">> ListAssSlice")
Karsten Hopp 3cec34
  ee('ll[1:100] = "abc"')
Karsten Hopp 3cec34
! #iter_test('l[:] = %s')
Karsten Hopp 3cec34
  convertfrompyobject_test('l[:] = [%s]')
Karsten Hopp 3cec34
  cb.append(">> ListConcatInPlace")
Karsten Hopp 3cec34
! #iter_test('l.extend(%s)')
Karsten Hopp 3cec34
  convertfrompyobject_test('l.extend([%s])')
Karsten Hopp 3cec34
  cb.append(">> ListSetattr")
Karsten Hopp 3cec34
  ee('del l.locked')
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 1004,1010 ****
Karsten Hopp 3cec34
  ee('vim.current.window.xxx')
Karsten Hopp 3cec34
  cb.append(">> WindowSetattr")
Karsten Hopp 3cec34
  ee('vim.current.window.buffer = 0')
Karsten Hopp 3cec34
! ee('vim.current.window.cursor = (10000000000, 100000000)')
Karsten Hopp 3cec34
  ee('vim.current.window.cursor = True')
Karsten Hopp 3cec34
  ee('vim.current.window.height = "abc"')
Karsten Hopp 3cec34
  ee('vim.current.window.width  = "abc"')
Karsten Hopp 3cec34
--- 1002,1008 ----
Karsten Hopp 3cec34
  ee('vim.current.window.xxx')
Karsten Hopp 3cec34
  cb.append(">> WindowSetattr")
Karsten Hopp 3cec34
  ee('vim.current.window.buffer = 0')
Karsten Hopp 3cec34
! ee('vim.current.window.cursor = (100000000, 100000000)')
Karsten Hopp 3cec34
  ee('vim.current.window.cursor = True')
Karsten Hopp 3cec34
  ee('vim.current.window.height = "abc"')
Karsten Hopp 3cec34
  ee('vim.current.window.width  = "abc"')
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 1025,1033 ****
Karsten Hopp 3cec34
  ee('vim.current.buffer.append(["\\na", "bc"])')
Karsten Hopp 3cec34
  ee('vim.current.buffer.append("\\nbc")')
Karsten Hopp 3cec34
  cb.append(">> RBItem")
Karsten Hopp 3cec34
! ee('vim.current.buffer[10000000000]')
Karsten Hopp 3cec34
  cb.append(">> RBAsItem")
Karsten Hopp 3cec34
! ee('vim.current.buffer[10000000000] = ""')
Karsten Hopp 3cec34
  cb.append(">> BufferAttr")
Karsten Hopp 3cec34
  ee('vim.current.buffer.xxx')
Karsten Hopp 3cec34
  cb.append(">> BufferSetattr")
Karsten Hopp 3cec34
--- 1023,1031 ----
Karsten Hopp 3cec34
  ee('vim.current.buffer.append(["\\na", "bc"])')
Karsten Hopp 3cec34
  ee('vim.current.buffer.append("\\nbc")')
Karsten Hopp 3cec34
  cb.append(">> RBItem")
Karsten Hopp 3cec34
! ee('vim.current.buffer[100000000]')
Karsten Hopp 3cec34
  cb.append(">> RBAsItem")
Karsten Hopp 3cec34
! ee('vim.current.buffer[100000000] = ""')
Karsten Hopp 3cec34
  cb.append(">> BufferAttr")
Karsten Hopp 3cec34
  ee('vim.current.buffer.xxx')
Karsten Hopp 3cec34
  cb.append(">> BufferSetattr")
Karsten Hopp 3cec34
*** ../vim-7.3.1079/src/testdir/test86.ok	2013-05-30 13:37:23.000000000 +0200
Karsten Hopp 3cec34
--- src/testdir/test86.ok	2013-05-31 18:59:34.000000000 +0200
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 439,448 ****
Karsten Hopp 3cec34
  >> OutputWriteLines
Karsten Hopp 3cec34
  sys.stdout.writelines(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
Karsten Hopp 3cec34
  sys.stdout.writelines([1]):(<type 'exceptions.TypeError'>, TypeError('writelines() requires list of strings',))
Karsten Hopp 3cec34
- >>> Testing *Iter* using sys.stdout.writelines(%s)
Karsten Hopp 3cec34
- sys.stdout.writelines(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- sys.stdout.writelines(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- <<< Finished
Karsten Hopp 3cec34
  > VimCommand
Karsten Hopp 3cec34
  vim.command(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 3cec34
  > VimToPython
Karsten Hopp 3cec34
--- 439,444 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 544,553 ****
Karsten Hopp 3cec34
  >>> iter
Karsten Hopp 3cec34
  d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
  d.update([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- >>> Testing *Iter* using d.update(%s)
Karsten Hopp 3cec34
- d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- <<< Finished
Karsten Hopp 3cec34
  >>> Testing StringToChars using d.update({%s : 1})
Karsten Hopp 3cec34
  d.update({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 3cec34
  d.update({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 3cec34
--- 540,545 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 681,690 ****
Karsten Hopp 3cec34
  >> ListConstructor
Karsten Hopp 3cec34
  vim.List(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
Karsten Hopp 3cec34
  vim.List(a=1):(<type 'exceptions.TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Karsten Hopp 3cec34
- >>> Testing *Iter* using vim.List(%s)
Karsten Hopp 3cec34
- vim.List(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- vim.List(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- <<< Finished
Karsten Hopp 3cec34
  >>> Testing StringToChars using vim.List([{%s : 1}])
Karsten Hopp 3cec34
  vim.List([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 3cec34
  vim.List([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 3cec34
--- 673,678 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 752,761 ****
Karsten Hopp 3cec34
  l[1000] = 3:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
Karsten Hopp 3cec34
  >> ListAssSlice
Karsten Hopp 3cec34
  ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Karsten Hopp 3cec34
- >>> Testing *Iter* using l[:] = %s
Karsten Hopp 3cec34
- l[:] = FailingIter():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- l[:] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- <<< Finished
Karsten Hopp 3cec34
  >>> Testing StringToChars using l[:] = [{%s : 1}]
Karsten Hopp 3cec34
  l[:] = [{1 : 1}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 3cec34
  l[:] = [{u"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 3cec34
--- 740,745 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 817,826 ****
Karsten Hopp 3cec34
  l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
  <<< Finished
Karsten Hopp 3cec34
  >> ListConcatInPlace
Karsten Hopp 3cec34
- >>> Testing *Iter* using l.extend(%s)
Karsten Hopp 3cec34
- l.extend(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- l.extend(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 3cec34
- <<< Finished
Karsten Hopp 3cec34
  >>> Testing StringToChars using l.extend([{%s : 1}])
Karsten Hopp 3cec34
  l.extend([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 3cec34
  l.extend([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 3cec34
--- 801,806 ----
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 1025,1031 ****
Karsten Hopp 3cec34
  vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 3cec34
  >> WindowSetattr
Karsten Hopp 3cec34
  vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Karsten Hopp 3cec34
! vim.current.window.cursor = (10000000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Karsten Hopp 3cec34
  vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Karsten Hopp 3cec34
  vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 3cec34
  vim.current.window.width  = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 3cec34
--- 1005,1011 ----
Karsten Hopp 3cec34
  vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 3cec34
  >> WindowSetattr
Karsten Hopp 3cec34
  vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Karsten Hopp 3cec34
! vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Karsten Hopp 3cec34
  vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Karsten Hopp 3cec34
  vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 3cec34
  vim.current.window.width  = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 1046,1054 ****
Karsten Hopp 3cec34
  vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 3cec34
  vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 3cec34
  >> RBItem
Karsten Hopp 3cec34
! vim.current.buffer[10000000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 3cec34
  >> RBAsItem
Karsten Hopp 3cec34
! vim.current.buffer[10000000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 3cec34
  >> BufferAttr
Karsten Hopp 3cec34
  vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 3cec34
  >> BufferSetattr
Karsten Hopp 3cec34
--- 1026,1034 ----
Karsten Hopp 3cec34
  vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 3cec34
  vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 3cec34
  >> RBItem
Karsten Hopp 3cec34
! vim.current.buffer[100000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 3cec34
  >> RBAsItem
Karsten Hopp 3cec34
! vim.current.buffer[100000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 3cec34
  >> BufferAttr
Karsten Hopp 3cec34
  vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 3cec34
  >> BufferSetattr
Karsten Hopp 3cec34
*** ../vim-7.3.1079/src/version.c	2013-05-31 18:46:06.000000000 +0200
Karsten Hopp 3cec34
--- src/version.c	2013-05-31 19:00:29.000000000 +0200
Karsten Hopp 3cec34
***************
Karsten Hopp 3cec34
*** 730,731 ****
Karsten Hopp 3cec34
--- 730,733 ----
Karsten Hopp 3cec34
  {   /* Add new patch number below this line */
Karsten Hopp 3cec34
+ /**/
Karsten Hopp 3cec34
+     1080,
Karsten Hopp 3cec34
  /**/
Karsten Hopp 3cec34
Karsten Hopp 3cec34
-- 
Karsten Hopp 3cec34
If you put 7 of the most talented OSS developers in a room for a week
Karsten Hopp 3cec34
and asked them to fix a bug in a spreadsheet program, in 1 week
Karsten Hopp 3cec34
you'd have 2 new mail readers and a text-based web browser.
Karsten Hopp 3cec34
Karsten Hopp 3cec34
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3cec34
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3cec34
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3cec34
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///