Karsten Hopp 716012
To: vim_dev@googlegroups.com
Karsten Hopp 716012
Subject: Patch 7.3.1066
Karsten Hopp 716012
Fcc: outbox
Karsten Hopp 716012
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 716012
Mime-Version: 1.0
Karsten Hopp 716012
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 716012
Content-Transfer-Encoding: 8bit
Karsten Hopp 716012
------------
Karsten Hopp 716012
Karsten Hopp 716012
Patch 7.3.1066
Karsten Hopp 716012
Problem:    Python: Insufficient exception and error testing.
Karsten Hopp 716012
Solution:   Python patch 25. (ZyX)
Karsten Hopp 716012
Files:	    src/testdir/test86.in, src/testdir/test86.ok,
Karsten Hopp 716012
	    src/testdir/test87.in, src/testdir/test87.ok
Karsten Hopp 716012
Karsten Hopp 716012
Karsten Hopp 716012
*** ../vim-7.3.1065/src/testdir/test86.in	2013-05-30 13:14:06.000000000 +0200
Karsten Hopp 716012
--- src/testdir/test86.in	2013-05-30 13:25:22.000000000 +0200
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 7,12 ****
Karsten Hopp 716012
--- 7,13 ----
Karsten Hopp 716012
  
Karsten Hopp 716012
  STARTTEST
Karsten Hopp 716012
  :so small.vim
Karsten Hopp 716012
+ :set encoding=latin1
Karsten Hopp 716012
  :if !has('python') | e! test.ok | wq! test.out | endif
Karsten Hopp 716012
  :lang C
Karsten Hopp 716012
  :py import vim
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 785,800 ****
Karsten Hopp 716012
  :$put =string(pyeval('dl2'))
Karsten Hopp 716012
  :$put =string(pyeval('df(2)'))
Karsten Hopp 716012
  :"
Karsten Hopp 716012
! :" Test exceptions
Karsten Hopp 716012
! :fun Exe(e)
Karsten Hopp 716012
! :   execute a:e
Karsten Hopp 716012
  :endfun
Karsten Hopp 716012
  py << EOF
Karsten Hopp 716012
  def ee(expr, g=globals(), l=locals()):
Karsten Hopp 716012
      try:
Karsten Hopp 716012
          exec(expr, g, l)
Karsten Hopp 716012
      except:
Karsten Hopp 716012
!         cb.append(repr(sys.exc_info()[:2]))
Karsten Hopp 716012
  Exe = vim.bindeval('function("Exe")')
Karsten Hopp 716012
  ee('vim.command("throw \'abc\'")')
Karsten Hopp 716012
  ee('Exe("throw \'def\'")')
Karsten Hopp 716012
--- 786,1062 ----
Karsten Hopp 716012
  :$put =string(pyeval('dl2'))
Karsten Hopp 716012
  :$put =string(pyeval('df(2)'))
Karsten Hopp 716012
  :"
Karsten Hopp 716012
! :" Test errors
Karsten Hopp 716012
! :fun F() dict
Karsten Hopp 716012
! :endfun
Karsten Hopp 716012
! :fun D()
Karsten Hopp 716012
  :endfun
Karsten Hopp 716012
  py << EOF
Karsten Hopp 716012
  def ee(expr, g=globals(), l=locals()):
Karsten Hopp 716012
      try:
Karsten Hopp 716012
          exec(expr, g, l)
Karsten Hopp 716012
      except:
Karsten Hopp 716012
!         cb.append(expr + ':' + repr(sys.exc_info()[:2]))
Karsten Hopp 716012
!     else:
Karsten Hopp 716012
!         cb.append(expr + ':NOT FAILED')
Karsten Hopp 716012
! d = vim.Dictionary()
Karsten Hopp 716012
! ned = vim.Dictionary(foo='bar', baz='abc')
Karsten Hopp 716012
! dl = vim.Dictionary(a=1)
Karsten Hopp 716012
! dl.locked = True
Karsten Hopp 716012
! l = vim.List()
Karsten Hopp 716012
! ll = vim.List('abc')
Karsten Hopp 716012
! ll.locked = True
Karsten Hopp 716012
! f = vim.Function('string')
Karsten Hopp 716012
! fd = vim.Function('F')
Karsten Hopp 716012
! fdel = vim.Function('D')
Karsten Hopp 716012
! vim.command('delfunction D')
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def subexpr_test(expr, name, subexprs):
Karsten Hopp 716012
!     cb.append('>>> Testing %s using %s' % (name, expr))
Karsten Hopp 716012
!     for subexpr in subexprs:
Karsten Hopp 716012
!         ee(expr % subexpr)
Karsten Hopp 716012
!     cb.append('<<< Finished')
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def stringtochars_test(expr):
Karsten Hopp 716012
!     return subexpr_test(expr, 'StringToChars', (
Karsten Hopp 716012
!         '1',       # Fail type checks
Karsten Hopp 716012
!         'u"\\0"',  # Fail PyString_AsStringAndSize(bytes, , NULL) check
Karsten Hopp 716012
!         '"\\0"',   # Fail PyString_AsStringAndSize(object, , NULL) check
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class Mapping(object):
Karsten Hopp 716012
!     def __init__(self, d):
Karsten Hopp 716012
!         self.d = d
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def __getitem__(self, key):
Karsten Hopp 716012
!         return self.d[key]
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         return self.d.keys()
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def items(self):
Karsten Hopp 716012
!         return self.d.items()
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def convertfrompyobject_test(expr, recurse=True):
Karsten Hopp 716012
!     # pydict_to_tv
Karsten Hopp 716012
!     stringtochars_test(expr % '{%s : 1}')
Karsten Hopp 716012
!     if recurse:
Karsten Hopp 716012
!         convertfrompyobject_test(expr % '{"abc" : %s}', False)
Karsten Hopp 716012
!     # pymap_to_tv
Karsten Hopp 716012
!     stringtochars_test(expr % 'Mapping({%s : 1})')
Karsten Hopp 716012
!     if recurse:
Karsten Hopp 716012
!         convertfrompyobject_test(expr % 'Mapping({"abc" : %s})', False)
Karsten Hopp 716012
!     # pyseq_to_tv
Karsten Hopp 716012
!     iter_test(expr)
Karsten Hopp 716012
!     return subexpr_test(expr, 'ConvertFromPyObject', (
Karsten Hopp 716012
!         'None',                 # Not conversible
Karsten Hopp 716012
!         '{"": 1}',              # Empty key not allowed
Karsten Hopp 716012
!         'FailingMapping()',     #
Karsten Hopp 716012
!         'FailingMappingKey()',  #
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def convertfrompymapping_test(expr):
Karsten Hopp 716012
!     convertfrompyobject_test(expr)
Karsten Hopp 716012
!     return subexpr_test(expr, 'ConvertFromPyMapping', (
Karsten Hopp 716012
!         '[]',
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def iter_test(expr):
Karsten Hopp 716012
!     return subexpr_test(expr, '*Iter*', (
Karsten Hopp 716012
!         'FailingIter()',
Karsten Hopp 716012
!         'FailingIterNext()',
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingTrue(object):
Karsten Hopp 716012
!     def __nonzero__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingIter(object):
Karsten Hopp 716012
!     def __iter__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingIterNext(object):
Karsten Hopp 716012
!     def __iter__(self):
Karsten Hopp 716012
!         return self
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def next(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingMappingKey(object):
Karsten Hopp 716012
!     def __getitem__(self, item):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         return list("abc")
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingMapping(object):
Karsten Hopp 716012
!     def __getitem__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingList(list):
Karsten Hopp 716012
!     def __getitem__(self, idx):
Karsten Hopp 716012
!         if i == 2:
Karsten Hopp 716012
!             raise NotImplementedError
Karsten Hopp 716012
!         else:
Karsten Hopp 716012
!             return super(FailingList, self).__getitem__(idx)
Karsten Hopp 716012
! 
Karsten Hopp 716012
! cb.append("> Output")
Karsten Hopp 716012
! cb.append(">> OutputSetattr")
Karsten Hopp 716012
! ee('del sys.stdout.softspace')
Karsten Hopp 716012
! ee('sys.stdout.softspace = []')
Karsten Hopp 716012
! ee('sys.stdout.attr = None')
Karsten Hopp 716012
! cb.append(">> OutputWrite")
Karsten Hopp 716012
! ee('sys.stdout.write(None)')
Karsten Hopp 716012
! cb.append(">> OutputWriteLines")
Karsten Hopp 716012
! ee('sys.stdout.writelines(None)')
Karsten Hopp 716012
! ee('sys.stdout.writelines([1])')
Karsten Hopp 716012
! iter_test('sys.stdout.writelines(%s)')
Karsten Hopp 716012
! cb.append("> VimCommand")
Karsten Hopp 716012
! ee('vim.command(1)')
Karsten Hopp 716012
! #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 716012
! cb.append("> VimToPython")
Karsten Hopp 716012
! #! Not checked: everything: needs errors in internal python functions
Karsten Hopp 716012
! cb.append("> VimEval")
Karsten Hopp 716012
! ee('vim.eval(1)')
Karsten Hopp 716012
! #! Not checked: everything: needs errors in internal python functions
Karsten Hopp 716012
! cb.append("> VimEvalPy")
Karsten Hopp 716012
! ee('vim.bindeval(1)')
Karsten Hopp 716012
! #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 716012
! cb.append("> VimStrwidth")
Karsten Hopp 716012
! ee('vim.strwidth(1)')
Karsten Hopp 716012
! cb.append("> Dictionary")
Karsten Hopp 716012
! cb.append(">> DictionaryConstructor")
Karsten Hopp 716012
! ee('vim.Dictionary("abc")')
Karsten Hopp 716012
! ##! Not checked: py_dict_alloc failure
Karsten Hopp 716012
! cb.append(">> DictionarySetattr")
Karsten Hopp 716012
! ee('del d.locked')
Karsten Hopp 716012
! ee('d.locked = FailingTrue()')
Karsten Hopp 716012
! ee('vim.vvars.locked = False')
Karsten Hopp 716012
! ee('d.scope = True')
Karsten Hopp 716012
! ee('d.xxx = True')
Karsten Hopp 716012
! cb.append(">> _DictionaryItem")
Karsten Hopp 716012
! ee('d.get("a", 2, 3)')
Karsten Hopp 716012
! stringtochars_test('d.get(%s)')
Karsten Hopp 716012
! ee('d.pop("a")')
Karsten Hopp 716012
! ee('dl.pop("a")')
Karsten Hopp 716012
! cb.append(">> DictionaryIterNext")
Karsten Hopp 716012
! ee('for i in ned: ned["a"] = 1')
Karsten Hopp 716012
! cb.append(">> DictionaryAssItem")
Karsten Hopp 716012
! ee('dl["b"] = 1')
Karsten Hopp 716012
! stringtochars_test('d[%s] = 1')
Karsten Hopp 716012
! convertfrompyobject_test('d["a"] = %s')
Karsten Hopp 716012
! cb.append(">> DictionaryUpdate")
Karsten Hopp 716012
! cb.append(">>> kwargs")
Karsten Hopp 716012
! cb.append(">>> iter")
Karsten Hopp 716012
! ee('d.update(FailingMapping())')
Karsten Hopp 716012
! ee('d.update([FailingIterNext()])')
Karsten Hopp 716012
! iter_test('d.update(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('d.update(%s)')
Karsten Hopp 716012
! stringtochars_test('d.update(((%s, 0),))')
Karsten Hopp 716012
! convertfrompyobject_test('d.update((("a", %s),))')
Karsten Hopp 716012
! cb.append(">> DictionaryPopItem")
Karsten Hopp 716012
! ee('d.popitem(1, 2)')
Karsten Hopp 716012
! cb.append(">> DictionaryHasKey")
Karsten Hopp 716012
! ee('d.has_key()')
Karsten Hopp 716012
! cb.append("> List")
Karsten Hopp 716012
! cb.append(">> ListConstructor")
Karsten Hopp 716012
! ee('vim.List(1, 2)')
Karsten Hopp 716012
! ee('vim.List(a=1)')
Karsten Hopp 716012
! iter_test('vim.List(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('vim.List([%s])')
Karsten Hopp 716012
! cb.append(">> ListItem")
Karsten Hopp 716012
! ee('l[1000]')
Karsten Hopp 716012
! cb.append(">> ListAssItem")
Karsten Hopp 716012
! ee('ll[1] = 2')
Karsten Hopp 716012
! ee('l[1000] = 3')
Karsten Hopp 716012
! cb.append(">> ListAssSlice")
Karsten Hopp 716012
! ee('ll[1:100] = "abc"')
Karsten Hopp 716012
! iter_test('l[:] = %s')
Karsten Hopp 716012
! convertfrompyobject_test('l[:] = [%s]')
Karsten Hopp 716012
! cb.append(">> ListConcatInPlace")
Karsten Hopp 716012
! iter_test('l.extend(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('l.extend([%s])')
Karsten Hopp 716012
! cb.append(">> ListSetattr")
Karsten Hopp 716012
! ee('del l.locked')
Karsten Hopp 716012
! ee('l.locked = FailingTrue()')
Karsten Hopp 716012
! ee('l.xxx = True')
Karsten Hopp 716012
! cb.append("> Function")
Karsten Hopp 716012
! cb.append(">> FunctionConstructor")
Karsten Hopp 716012
! ee('vim.Function("123")')
Karsten Hopp 716012
! ee('vim.Function("xxx_non_existent_function_xxx")')
Karsten Hopp 716012
! ee('vim.Function("xxx#non#existent#function#xxx")')
Karsten Hopp 716012
! cb.append(">> FunctionCall")
Karsten Hopp 716012
! convertfrompyobject_test('f(%s)')
Karsten Hopp 716012
! convertfrompymapping_test('fd(self=%s)')
Karsten Hopp 716012
! cb.append("> TabPage")
Karsten Hopp 716012
! cb.append(">> TabPageAttr")
Karsten Hopp 716012
! ee('vim.current.tabpage.xxx')
Karsten Hopp 716012
! cb.append("> TabList")
Karsten Hopp 716012
! cb.append(">> TabListItem")
Karsten Hopp 716012
! ee('vim.tabpages[1000]')
Karsten Hopp 716012
! cb.append("> Window")
Karsten Hopp 716012
! cb.append(">> WindowAttr")
Karsten Hopp 716012
! ee('vim.current.window.xxx')
Karsten Hopp 716012
! cb.append(">> WindowSetattr")
Karsten Hopp 716012
! ee('vim.current.window.buffer = 0')
Karsten Hopp 716012
! ee('vim.current.window.cursor = (10000000000, 100000000)')
Karsten Hopp 716012
! ee('vim.current.window.cursor = True')
Karsten Hopp 716012
! ee('vim.current.window.height = "abc"')
Karsten Hopp 716012
! ee('vim.current.window.width  = "abc"')
Karsten Hopp 716012
! ee('vim.current.window.xxxxxx = True')
Karsten Hopp 716012
! cb.append("> WinList")
Karsten Hopp 716012
! cb.append(">> WinListItem")
Karsten Hopp 716012
! ee('vim.windows[1000]')
Karsten Hopp 716012
! cb.append("> Buffer")
Karsten Hopp 716012
! cb.append(">> StringToLine (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[0] = "\\na"')
Karsten Hopp 716012
! cb.append(">> SetBufferLine (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[0] = True')
Karsten Hopp 716012
! cb.append(">> SetBufferLines (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[:] = True')
Karsten Hopp 716012
! ee('vim.current.buffer[:] = ["\\na", "bc"]')
Karsten Hopp 716012
! cb.append(">> InsertBufferLines (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer.append(None)')
Karsten Hopp 716012
! ee('vim.current.buffer.append(["\\na", "bc"])')
Karsten Hopp 716012
! ee('vim.current.buffer.append("\\nbc")')
Karsten Hopp 716012
! cb.append(">> RBItem")
Karsten Hopp 716012
! ee('vim.current.buffer[10000000000]')
Karsten Hopp 716012
! cb.append(">> RBAsItem")
Karsten Hopp 716012
! ee('vim.current.buffer[10000000000] = ""')
Karsten Hopp 716012
! cb.append(">> BufferAttr")
Karsten Hopp 716012
! ee('vim.current.buffer.xxx')
Karsten Hopp 716012
! cb.append(">> BufferSetattr")
Karsten Hopp 716012
! ee('vim.current.buffer.name = True')
Karsten Hopp 716012
! ee('vim.current.buffer.xxx = True')
Karsten Hopp 716012
! cb.append(">> BufferMark")
Karsten Hopp 716012
! ee('vim.current.buffer.mark(0)')
Karsten Hopp 716012
! ee('vim.current.buffer.mark("abc")')
Karsten Hopp 716012
! ee('vim.current.buffer.mark("!")')
Karsten Hopp 716012
! cb.append(">> BufferRange")
Karsten Hopp 716012
! ee('vim.current.buffer.range(1, 2, 3)')
Karsten Hopp 716012
! cb.append("> BufMap")
Karsten Hopp 716012
! cb.append(">> BufMapItem")
Karsten Hopp 716012
! ee('vim.buffers[None]')
Karsten Hopp 716012
! ee('vim.buffers[100000000]')
Karsten Hopp 716012
! cb.append("> Current")
Karsten Hopp 716012
! cb.append(">> CurrentGetattr")
Karsten Hopp 716012
! ee('vim.current.xxx')
Karsten Hopp 716012
! cb.append(">> CurrentSetattr")
Karsten Hopp 716012
! ee('vim.current.line = True')
Karsten Hopp 716012
! ee('vim.current.buffer = True')
Karsten Hopp 716012
! ee('vim.current.window = True')
Karsten Hopp 716012
! ee('vim.current.tabpage = True')
Karsten Hopp 716012
! ee('vim.current.xxx = True')
Karsten Hopp 716012
! EOF
Karsten Hopp 716012
! :"
Karsten Hopp 716012
! :" Test exceptions
Karsten Hopp 716012
! :fun Exe(e)
Karsten Hopp 716012
! :   execute a:e
Karsten Hopp 716012
! :endfun
Karsten Hopp 716012
! py << EOF
Karsten Hopp 716012
  Exe = vim.bindeval('function("Exe")')
Karsten Hopp 716012
  ee('vim.command("throw \'abc\'")')
Karsten Hopp 716012
  ee('Exe("throw \'def\'")')
Karsten Hopp 716012
*** ../vim-7.3.1065/src/testdir/test86.ok	2013-05-30 13:14:06.000000000 +0200
Karsten Hopp 716012
--- src/testdir/test86.ok	2013-05-30 13:25:22.000000000 +0200
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 429,437 ****
Karsten Hopp 716012
  ['a', 'b', 'c']
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
! (<class 'vim.error'>, error('abc',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('def',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('ghi',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim(echoerr):jkl',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
--- 429,1081 ----
Karsten Hopp 716012
  ['a', 'b', 'c']
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
! > Output
Karsten Hopp 716012
! >> OutputSetattr
Karsten Hopp 716012
! del sys.stdout.softspace:(<type 'exceptions.AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Karsten Hopp 716012
! sys.stdout.softspace = []:(<type 'exceptions.TypeError'>, TypeError('softspace must be an integer',))
Karsten Hopp 716012
! sys.stdout.attr = None:(<type 'exceptions.AttributeError'>, AttributeError('invalid attribute',))
Karsten Hopp 716012
! >> OutputWrite
Karsten Hopp 716012
! sys.stdout.write(None):(<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need string or buffer, NoneType found',))
Karsten Hopp 716012
! >> OutputWriteLines
Karsten Hopp 716012
! sys.stdout.writelines(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
Karsten Hopp 716012
! sys.stdout.writelines([1]):(<type 'exceptions.TypeError'>, TypeError('writelines() requires list of strings',))
Karsten Hopp 716012
! >>> Testing *Iter* using sys.stdout.writelines(%s)
Karsten Hopp 716012
! sys.stdout.writelines(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! sys.stdout.writelines(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! > VimCommand
Karsten Hopp 716012
! vim.command(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 716012
! > VimToPython
Karsten Hopp 716012
! > VimEval
Karsten Hopp 716012
! vim.eval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 716012
! > VimEvalPy
Karsten Hopp 716012
! vim.bindeval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 716012
! > VimStrwidth
Karsten Hopp 716012
! vim.strwidth(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 716012
! > Dictionary
Karsten Hopp 716012
! >> DictionaryConstructor
Karsten Hopp 716012
! vim.Dictionary("abc"):(<type 'exceptions.ValueError'>, ValueError('expected sequence element of size 2',))
Karsten Hopp 716012
! >> DictionarySetattr
Karsten Hopp 716012
! del d.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Karsten Hopp 716012
! d.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.vvars.locked = False:(<type 'exceptions.TypeError'>, TypeError('cannot modify fixed dictionary',))
Karsten Hopp 716012
! d.scope = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! d.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! >> _DictionaryItem
Karsten Hopp 716012
! d.get("a", 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
Karsten Hopp 716012
! >>> Testing StringToChars using d.get(%s)
Karsten Hopp 716012
! d.get(1):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.get(u"\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.get("\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! d.pop("a"):(<type 'exceptions.KeyError'>, KeyError('a',))
Karsten Hopp 716012
! dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
Karsten Hopp 716012
! >> DictionaryIterNext
Karsten Hopp 716012
! for i in ned: ned["a"] = 1:(<type 'exceptions.RuntimeError'>, RuntimeError('hashtab changed during iteration',))
Karsten Hopp 716012
! >> DictionaryAssItem
Karsten Hopp 716012
! dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
Karsten Hopp 716012
! >>> Testing StringToChars using d[%s] = 1
Karsten Hopp 716012
! d[1] = 1:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d[u"\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {%s : 1}
Karsten Hopp 716012
! d["a"] = {1 : 1}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {u"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = {"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
Karsten Hopp 716012
! d["a"] = {"abc" : {1 : 1}}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {"abc" : {u"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = {"abc" : {"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({1 : 1})}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({u"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = {"abc" : %s}
Karsten Hopp 716012
! d["a"] = {"abc" : FailingIter()}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"abc" : FailingIterNext()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
Karsten Hopp 716012
! d["a"] = {"abc" : None}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"abc" : {"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Karsten Hopp 716012
! d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = Mapping({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = %s
Karsten Hopp 716012
! d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = %s
Karsten Hopp 716012
! d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> DictionaryUpdate
Karsten Hopp 716012
! >>> kwargs
Karsten Hopp 716012
! >>> iter
Karsten Hopp 716012
! d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(%s)
Karsten Hopp 716012
! d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({%s : 1})
Karsten Hopp 716012
! d.update({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({"abc" : {%s : 1}})
Karsten Hopp 716012
! d.update({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! d.update({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update({"abc" : %s})
Karsten Hopp 716012
! d.update({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update({"abc" : %s})
Karsten Hopp 716012
! d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({%s : 1}))
Karsten Hopp 716012
! d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(%s)
Karsten Hopp 716012
! d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update(%s)
Karsten Hopp 716012
! d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
Karsten Hopp 716012
! d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(((%s, 0),))
Karsten Hopp 716012
! d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(((u"\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {%s : 1}),))
Karsten Hopp 716012
! d.update((("a", {1 : 1}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {u"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", {"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : {1 : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {u"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingIter()}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Karsten Hopp 716012
! d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({u"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", Mapping({"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingIter()})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", %s),))
Karsten Hopp 716012
! d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", %s),))
Karsten Hopp 716012
! d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> DictionaryPopItem
Karsten Hopp 716012
! d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Karsten Hopp 716012
! >> DictionaryHasKey
Karsten Hopp 716012
! d.has_key():(<type 'exceptions.TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
Karsten Hopp 716012
! > List
Karsten Hopp 716012
! >> ListConstructor
Karsten Hopp 716012
! vim.List(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
Karsten Hopp 716012
! vim.List(a=1):(<type 'exceptions.TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List(%s)
Karsten Hopp 716012
! vim.List(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{%s : 1}])
Karsten Hopp 716012
! vim.List([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
Karsten Hopp 716012
! vim.List([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([{"abc" : %s}])
Karsten Hopp 716012
! vim.List([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
Karsten Hopp 716012
! vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Karsten Hopp 716012
! vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([%s])
Karsten Hopp 716012
! vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([%s])
Karsten Hopp 716012
! vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListItem
Karsten Hopp 716012
! l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
Karsten Hopp 716012
! >> ListAssItem
Karsten Hopp 716012
! ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
Karsten Hopp 716012
! l[1000] = 3:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
Karsten Hopp 716012
! >> ListAssSlice
Karsten Hopp 716012
! ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = %s
Karsten Hopp 716012
! l[:] = FailingIter():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{%s : 1}]
Karsten Hopp 716012
! l[:] = [{1 : 1}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{u"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [{"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
Karsten Hopp 716012
! l[:] = [{"abc" : {1 : 1}}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{"abc" : {u"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [{"abc" : {"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({1 : 1})}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [{"abc" : %s}]
Karsten Hopp 716012
! l[:] = [{"abc" : FailingIter()}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
Karsten Hopp 716012
! l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Karsten Hopp 716012
! l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({u"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [Mapping({"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {1 : 1}})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingIter()})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [%s]
Karsten Hopp 716012
! l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [%s]
Karsten Hopp 716012
! l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListConcatInPlace
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend(%s)
Karsten Hopp 716012
! l.extend(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{%s : 1}])
Karsten Hopp 716012
! l.extend([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
Karsten Hopp 716012
! l.extend([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([{"abc" : %s}])
Karsten Hopp 716012
! l.extend([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
Karsten Hopp 716012
! l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Karsten Hopp 716012
! l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([%s])
Karsten Hopp 716012
! l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([%s])
Karsten Hopp 716012
! l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListSetattr
Karsten Hopp 716012
! del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Karsten Hopp 716012
! l.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! > Function
Karsten Hopp 716012
! >> FunctionConstructor
Karsten Hopp 716012
! vim.Function("123"):(<type 'exceptions.ValueError'>, ValueError('unnamed function does not exist',))
Karsten Hopp 716012
! vim.Function("xxx_non_existent_function_xxx"):(<type 'exceptions.ValueError'>, ValueError('function does not exist',))
Karsten Hopp 716012
! vim.Function("xxx#non#existent#function#xxx"):(<type 'exceptions.ValueError'>, ValueError('function does not exist',))
Karsten Hopp 716012
! >> FunctionCall
Karsten Hopp 716012
! >>> Testing StringToChars using f({%s : 1})
Karsten Hopp 716012
! f({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f({"abc" : {%s : 1}})
Karsten Hopp 716012
! f({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! f({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f({"abc" : %s})
Karsten Hopp 716012
! f({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f({"abc" : %s})
Karsten Hopp 716012
! f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({%s : 1}))
Karsten Hopp 716012
! f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! f(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f(Mapping({"abc" : %s}))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
Karsten Hopp 716012
! f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f(%s)
Karsten Hopp 716012
! f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f(%s)
Karsten Hopp 716012
! f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={%s : 1})
Karsten Hopp 716012
! fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self={"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
Karsten Hopp 716012
! fd(self={"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self={"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! fd(self={"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self={"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self={"abc" : %s})
Karsten Hopp 716012
! fd(self={"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
Karsten Hopp 716012
! fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Karsten Hopp 716012
! fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self=Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self=%s)
Karsten Hopp 716012
! fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self=%s)
Karsten Hopp 716012
! fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyMapping using fd(self=%s)
Karsten Hopp 716012
! fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! > TabPage
Karsten Hopp 716012
! >> TabPageAttr
Karsten Hopp 716012
! vim.current.tabpage.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! > TabList
Karsten Hopp 716012
! >> TabListItem
Karsten Hopp 716012
! vim.tabpages[1000]:(<type 'exceptions.IndexError'>, IndexError('no such tab page',))
Karsten Hopp 716012
! > Window
Karsten Hopp 716012
! >> WindowAttr
Karsten Hopp 716012
! vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! >> WindowSetattr
Karsten Hopp 716012
! vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Karsten Hopp 716012
! vim.current.window.cursor = (10000000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Karsten Hopp 716012
! vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Karsten Hopp 716012
! vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 716012
! vim.current.window.width  = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
Karsten Hopp 716012
! vim.current.window.xxxxxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxxxxx',))
Karsten Hopp 716012
! > WinList
Karsten Hopp 716012
! >> WinListItem
Karsten Hopp 716012
! vim.windows[1000]:(<type 'exceptions.IndexError'>, IndexError('no such window',))
Karsten Hopp 716012
! > Buffer
Karsten Hopp 716012
! >> StringToLine (indirect)
Karsten Hopp 716012
! vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> SetBufferLine (indirect)
Karsten Hopp 716012
! vim.current.buffer[0] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! >> SetBufferLines (indirect)
Karsten Hopp 716012
! vim.current.buffer[:] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> InsertBufferLines (indirect)
Karsten Hopp 716012
! vim.current.buffer.append(None):(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> RBItem
Karsten Hopp 716012
! vim.current.buffer[10000000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 716012
! >> RBAsItem
Karsten Hopp 716012
! vim.current.buffer[10000000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Karsten Hopp 716012
! >> BufferAttr
Karsten Hopp 716012
! vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! >> BufferSetattr
Karsten Hopp 716012
! vim.current.buffer.name = True:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.current.buffer.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! >> BufferMark
Karsten Hopp 716012
! vim.current.buffer.mark(0):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
Karsten Hopp 716012
! vim.current.buffer.mark("abc"):(<type 'exceptions.ValueError'>, ValueError('mark name must be a single character',))
Karsten Hopp 716012
! vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
Karsten Hopp 716012
! >> BufferRange
Karsten Hopp 716012
! vim.current.buffer.range(1, 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
Karsten Hopp 716012
! > BufMap
Karsten Hopp 716012
! >> BufMapItem
Karsten Hopp 716012
! vim.buffers[None]:(<type 'exceptions.TypeError'>, TypeError('key must be integer',))
Karsten Hopp 716012
! vim.buffers[100000000]:(<type 'exceptions.KeyError'>, KeyError(100000000,))
Karsten Hopp 716012
! > Current
Karsten Hopp 716012
! >> CurrentGetattr
Karsten Hopp 716012
! vim.current.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! >> CurrentSetattr
Karsten Hopp 716012
! vim.current.line = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Buffer object',))
Karsten Hopp 716012
! vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
Karsten Hopp 716012
! vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
Karsten Hopp 716012
! vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Karsten Hopp 716012
! Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
Karsten Hopp 716012
! vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
Karsten Hopp 716012
! vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
Karsten Hopp 716012
! vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
! vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
*** ../vim-7.3.1065/src/testdir/test87.in	2013-05-30 13:14:06.000000000 +0200
Karsten Hopp 716012
--- src/testdir/test87.in	2013-05-30 13:25:22.000000000 +0200
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 746,761 ****
Karsten Hopp 716012
  :$put =string(py3eval('dl2'))
Karsten Hopp 716012
  :$put =string(py3eval('df(2)'))
Karsten Hopp 716012
  :"
Karsten Hopp 716012
! :" Test exceptions
Karsten Hopp 716012
! :fun Exe(e)
Karsten Hopp 716012
! :   execute a:e
Karsten Hopp 716012
  :endfun
Karsten Hopp 716012
  py3 << EOF
Karsten Hopp 716012
  def ee(expr, g=globals(), l=locals()):
Karsten Hopp 716012
      try:
Karsten Hopp 716012
!         exec(expr, g, l)
Karsten Hopp 716012
      except Exception as e:
Karsten Hopp 716012
!         cb.append(repr((e.__class__, e)))
Karsten Hopp 716012
  Exe = vim.bindeval('function("Exe")')
Karsten Hopp 716012
  ee('vim.command("throw \'abc\'")')
Karsten Hopp 716012
  ee('Exe("throw \'def\'")')
Karsten Hopp 716012
--- 746,1026 ----
Karsten Hopp 716012
  :$put =string(py3eval('dl2'))
Karsten Hopp 716012
  :$put =string(py3eval('df(2)'))
Karsten Hopp 716012
  :"
Karsten Hopp 716012
! :" Test errors
Karsten Hopp 716012
! :fun F() dict
Karsten Hopp 716012
! :endfun
Karsten Hopp 716012
! :fun D()
Karsten Hopp 716012
  :endfun
Karsten Hopp 716012
  py3 << EOF
Karsten Hopp 716012
  def ee(expr, g=globals(), l=locals()):
Karsten Hopp 716012
      try:
Karsten Hopp 716012
!         try:
Karsten Hopp 716012
!             exec(expr, g, l)
Karsten Hopp 716012
!         except Exception as e:
Karsten Hopp 716012
!             cb.append(expr + ':' + repr((e.__class__, e)))
Karsten Hopp 716012
!         else:
Karsten Hopp 716012
!             cb.append(expr + ':NOT FAILED')
Karsten Hopp 716012
      except Exception as e:
Karsten Hopp 716012
!         cb.append(expr + '::' + repr((e.__class__, e)))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! d = vim.Dictionary()
Karsten Hopp 716012
! ned = vim.Dictionary(foo='bar', baz='abc')
Karsten Hopp 716012
! dl = vim.Dictionary(a=1)
Karsten Hopp 716012
! dl.locked = True
Karsten Hopp 716012
! l = vim.List()
Karsten Hopp 716012
! ll = vim.List('abc')
Karsten Hopp 716012
! ll.locked = True
Karsten Hopp 716012
! f = vim.Function('string')
Karsten Hopp 716012
! fd = vim.Function('F')
Karsten Hopp 716012
! fdel = vim.Function('D')
Karsten Hopp 716012
! vim.command('delfunction D')
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def subexpr_test(expr, name, subexprs):
Karsten Hopp 716012
!     cb.append('>>> Testing %s using %s' % (name, expr))
Karsten Hopp 716012
!     for subexpr in subexprs:
Karsten Hopp 716012
!         ee(expr % subexpr)
Karsten Hopp 716012
!     cb.append('<<< Finished')
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def stringtochars_test(expr):
Karsten Hopp 716012
!     return subexpr_test(expr, 'StringToChars', (
Karsten Hopp 716012
!         '1',       # Fail type checks
Karsten Hopp 716012
!         'u"\\0"',  # Fail PyString_AsStringAndSize(bytes, , NULL) check
Karsten Hopp 716012
!         '"\\0"',   # Fail PyString_AsStringAndSize(object, , NULL) check
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class Mapping(object):
Karsten Hopp 716012
!     def __init__(self, d):
Karsten Hopp 716012
!         self.d = d
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def __getitem__(self, key):
Karsten Hopp 716012
!         return self.d[key]
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         return self.d.keys()
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def items(self):
Karsten Hopp 716012
!         return self.d.items()
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def convertfrompyobject_test(expr, recurse=True):
Karsten Hopp 716012
!     # pydict_to_tv
Karsten Hopp 716012
!     stringtochars_test(expr % '{%s : 1}')
Karsten Hopp 716012
!     if recurse:
Karsten Hopp 716012
!         convertfrompyobject_test(expr % '{"abc" : %s}', False)
Karsten Hopp 716012
!     # pymap_to_tv
Karsten Hopp 716012
!     stringtochars_test(expr % 'Mapping({%s : 1})')
Karsten Hopp 716012
!     if recurse:
Karsten Hopp 716012
!         convertfrompyobject_test(expr % 'Mapping({"abc" : %s})', False)
Karsten Hopp 716012
!     # pyseq_to_tv
Karsten Hopp 716012
!     iter_test(expr)
Karsten Hopp 716012
!     return subexpr_test(expr, 'ConvertFromPyObject', (
Karsten Hopp 716012
!         'None',                 # Not conversible
Karsten Hopp 716012
!         '{"": 1}',              # Empty key not allowed
Karsten Hopp 716012
!         'FailingMapping()',     #
Karsten Hopp 716012
!         'FailingMappingKey()',  #
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def convertfrompymapping_test(expr):
Karsten Hopp 716012
!     convertfrompyobject_test(expr)
Karsten Hopp 716012
!     return subexpr_test(expr, 'ConvertFromPyMapping', (
Karsten Hopp 716012
!         '[]',
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! def iter_test(expr):
Karsten Hopp 716012
!     return subexpr_test(expr, '*Iter*', (
Karsten Hopp 716012
!         'FailingIter()',
Karsten Hopp 716012
!         'FailingIterNext()',
Karsten Hopp 716012
!     ))
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingTrue(object):
Karsten Hopp 716012
!     def __bool__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingIter(object):
Karsten Hopp 716012
!     def __iter__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingIterNext(object):
Karsten Hopp 716012
!     def __iter__(self):
Karsten Hopp 716012
!         return self
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def __next__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingMappingKey(object):
Karsten Hopp 716012
!     def __getitem__(self, item):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         return list("abc")
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingMapping(object):
Karsten Hopp 716012
!     def __getitem__(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
!     def keys(self):
Karsten Hopp 716012
!         raise NotImplementedError
Karsten Hopp 716012
! 
Karsten Hopp 716012
! class FailingList(list):
Karsten Hopp 716012
!     def __getitem__(self, idx):
Karsten Hopp 716012
!         if i == 2:
Karsten Hopp 716012
!             raise NotImplementedError
Karsten Hopp 716012
!         else:
Karsten Hopp 716012
!             return super(FailingList, self).__getitem__(idx)
Karsten Hopp 716012
! 
Karsten Hopp 716012
! cb.append("> Output")
Karsten Hopp 716012
! cb.append(">> OutputSetattr")
Karsten Hopp 716012
! ee('del sys.stdout.softspace')
Karsten Hopp 716012
! ee('sys.stdout.softspace = []')
Karsten Hopp 716012
! ee('sys.stdout.attr = None')
Karsten Hopp 716012
! cb.append(">> OutputWrite")
Karsten Hopp 716012
! ee('sys.stdout.write(None)')
Karsten Hopp 716012
! cb.append(">> OutputWriteLines")
Karsten Hopp 716012
! ee('sys.stdout.writelines(None)')
Karsten Hopp 716012
! ee('sys.stdout.writelines([1])')
Karsten Hopp 716012
! iter_test('sys.stdout.writelines(%s)')
Karsten Hopp 716012
! cb.append("> VimCommand")
Karsten Hopp 716012
! ee('vim.command(1)')
Karsten Hopp 716012
! #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 716012
! cb.append("> VimToPython")
Karsten Hopp 716012
! #! Not checked: everything: needs errors in internal python functions
Karsten Hopp 716012
! cb.append("> VimEval")
Karsten Hopp 716012
! ee('vim.eval(1)')
Karsten Hopp 716012
! #! Not checked: everything: needs errors in internal python functions
Karsten Hopp 716012
! cb.append("> VimEvalPy")
Karsten Hopp 716012
! ee('vim.bindeval(1)')
Karsten Hopp 716012
! #! Not checked: vim->python exceptions translating: checked later
Karsten Hopp 716012
! cb.append("> VimStrwidth")
Karsten Hopp 716012
! ee('vim.strwidth(1)')
Karsten Hopp 716012
! cb.append("> Dictionary")
Karsten Hopp 716012
! cb.append(">> DictionaryConstructor")
Karsten Hopp 716012
! ee('vim.Dictionary("abc")')
Karsten Hopp 716012
! ##! Not checked: py_dict_alloc failure
Karsten Hopp 716012
! cb.append(">> DictionarySetattr")
Karsten Hopp 716012
! ee('del d.locked')
Karsten Hopp 716012
! ee('d.locked = FailingTrue()')
Karsten Hopp 716012
! ee('vim.vvars.locked = False')
Karsten Hopp 716012
! ee('d.scope = True')
Karsten Hopp 716012
! ee('d.xxx = True')
Karsten Hopp 716012
! cb.append(">> _DictionaryItem")
Karsten Hopp 716012
! ee('d.get("a", 2, 3)')
Karsten Hopp 716012
! stringtochars_test('d.get(%s)')
Karsten Hopp 716012
! ee('d.pop("a")')
Karsten Hopp 716012
! ee('dl.pop("a")')
Karsten Hopp 716012
! cb.append(">> DictionaryIterNext")
Karsten Hopp 716012
! ee('for i in ned: ned["a"] = 1')
Karsten Hopp 716012
! cb.append(">> DictionaryAssItem")
Karsten Hopp 716012
! ee('dl["b"] = 1')
Karsten Hopp 716012
! stringtochars_test('d[%s] = 1')
Karsten Hopp 716012
! convertfrompyobject_test('d["a"] = %s')
Karsten Hopp 716012
! cb.append(">> DictionaryUpdate")
Karsten Hopp 716012
! cb.append(">>> kwargs")
Karsten Hopp 716012
! cb.append(">>> iter")
Karsten Hopp 716012
! ee('d.update(FailingMapping())')
Karsten Hopp 716012
! ee('d.update([FailingIterNext()])')
Karsten Hopp 716012
! iter_test('d.update(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('d.update(%s)')
Karsten Hopp 716012
! stringtochars_test('d.update(((%s, 0),))')
Karsten Hopp 716012
! convertfrompyobject_test('d.update((("a", %s),))')
Karsten Hopp 716012
! cb.append(">> DictionaryPopItem")
Karsten Hopp 716012
! ee('d.popitem(1, 2)')
Karsten Hopp 716012
! cb.append(">> DictionaryHasKey")
Karsten Hopp 716012
! ee('d.has_key()')
Karsten Hopp 716012
! cb.append("> List")
Karsten Hopp 716012
! cb.append(">> ListConstructor")
Karsten Hopp 716012
! ee('vim.List(1, 2)')
Karsten Hopp 716012
! ee('vim.List(a=1)')
Karsten Hopp 716012
! iter_test('vim.List(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('vim.List([%s])')
Karsten Hopp 716012
! cb.append(">> ListItem")
Karsten Hopp 716012
! ee('l[1000]')
Karsten Hopp 716012
! cb.append(">> ListAssItem")
Karsten Hopp 716012
! ee('ll[1] = 2')
Karsten Hopp 716012
! ee('l[1000] = 3')
Karsten Hopp 716012
! cb.append(">> ListAssSlice")
Karsten Hopp 716012
! ee('ll[1:100] = "abc"')
Karsten Hopp 716012
! iter_test('l[:] = %s')
Karsten Hopp 716012
! convertfrompyobject_test('l[:] = [%s]')
Karsten Hopp 716012
! cb.append(">> ListConcatInPlace")
Karsten Hopp 716012
! iter_test('l.extend(%s)')
Karsten Hopp 716012
! convertfrompyobject_test('l.extend([%s])')
Karsten Hopp 716012
! cb.append(">> ListSetattr")
Karsten Hopp 716012
! ee('del l.locked')
Karsten Hopp 716012
! ee('l.locked = FailingTrue()')
Karsten Hopp 716012
! ee('l.xxx = True')
Karsten Hopp 716012
! cb.append("> Function")
Karsten Hopp 716012
! cb.append(">> FunctionConstructor")
Karsten Hopp 716012
! ee('vim.Function("123")')
Karsten Hopp 716012
! ee('vim.Function("xxx_non_existent_function_xxx")')
Karsten Hopp 716012
! ee('vim.Function("xxx#non#existent#function#xxx")')
Karsten Hopp 716012
! cb.append(">> FunctionCall")
Karsten Hopp 716012
! convertfrompyobject_test('f(%s)')
Karsten Hopp 716012
! convertfrompymapping_test('fd(self=%s)')
Karsten Hopp 716012
! cb.append("> TabPage")
Karsten Hopp 716012
! cb.append(">> TabPageAttr")
Karsten Hopp 716012
! ee('vim.current.tabpage.xxx')
Karsten Hopp 716012
! cb.append("> TabList")
Karsten Hopp 716012
! cb.append(">> TabListItem")
Karsten Hopp 716012
! ee('vim.tabpages[1000]')
Karsten Hopp 716012
! cb.append("> Window")
Karsten Hopp 716012
! cb.append(">> WindowAttr")
Karsten Hopp 716012
! ee('vim.current.window.xxx')
Karsten Hopp 716012
! cb.append(">> WindowSetattr")
Karsten Hopp 716012
! ee('vim.current.window.buffer = 0')
Karsten Hopp 716012
! ee('vim.current.window.cursor = (10000000000, 100000000)')
Karsten Hopp 716012
! ee('vim.current.window.cursor = True')
Karsten Hopp 716012
! ee('vim.current.window.height = "abc"')
Karsten Hopp 716012
! ee('vim.current.window.width  = "abc"')
Karsten Hopp 716012
! ee('vim.current.window.xxxxxx = True')
Karsten Hopp 716012
! cb.append("> WinList")
Karsten Hopp 716012
! cb.append(">> WinListItem")
Karsten Hopp 716012
! ee('vim.windows[1000]')
Karsten Hopp 716012
! cb.append("> Buffer")
Karsten Hopp 716012
! cb.append(">> StringToLine (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[0] = "\\na"')
Karsten Hopp 716012
! cb.append(">> SetBufferLine (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[0] = True')
Karsten Hopp 716012
! cb.append(">> SetBufferLines (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer[:] = True')
Karsten Hopp 716012
! ee('vim.current.buffer[:] = ["\\na", "bc"]')
Karsten Hopp 716012
! cb.append(">> InsertBufferLines (indirect)")
Karsten Hopp 716012
! ee('vim.current.buffer.append(None)')
Karsten Hopp 716012
! ee('vim.current.buffer.append(["\\na", "bc"])')
Karsten Hopp 716012
! ee('vim.current.buffer.append("\\nbc")')
Karsten Hopp 716012
! cb.append(">> RBItem")
Karsten Hopp 716012
! ee('vim.current.buffer[10000000000]')
Karsten Hopp 716012
! cb.append(">> RBAsItem")
Karsten Hopp 716012
! ee('vim.current.buffer[10000000000] = ""')
Karsten Hopp 716012
! cb.append(">> BufferAttr")
Karsten Hopp 716012
! ee('vim.current.buffer.xxx')
Karsten Hopp 716012
! cb.append(">> BufferSetattr")
Karsten Hopp 716012
! ee('vim.current.buffer.name = True')
Karsten Hopp 716012
! ee('vim.current.buffer.xxx = True')
Karsten Hopp 716012
! cb.append(">> BufferMark")
Karsten Hopp 716012
! ee('vim.current.buffer.mark(0)')
Karsten Hopp 716012
! ee('vim.current.buffer.mark("abc")')
Karsten Hopp 716012
! ee('vim.current.buffer.mark("!")')
Karsten Hopp 716012
! cb.append(">> BufferRange")
Karsten Hopp 716012
! ee('vim.current.buffer.range(1, 2, 3)')
Karsten Hopp 716012
! cb.append("> BufMap")
Karsten Hopp 716012
! cb.append(">> BufMapItem")
Karsten Hopp 716012
! ee('vim.buffers[None]')
Karsten Hopp 716012
! ee('vim.buffers[100000000]')
Karsten Hopp 716012
! cb.append("> Current")
Karsten Hopp 716012
! cb.append(">> CurrentGetattr")
Karsten Hopp 716012
! ee('vim.current.xxx')
Karsten Hopp 716012
! cb.append(">> CurrentSetattr")
Karsten Hopp 716012
! ee('vim.current.line = True')
Karsten Hopp 716012
! ee('vim.current.buffer = True')
Karsten Hopp 716012
! ee('vim.current.window = True')
Karsten Hopp 716012
! ee('vim.current.tabpage = True')
Karsten Hopp 716012
! ee('vim.current.xxx = True')
Karsten Hopp 716012
! EOF
Karsten Hopp 716012
! :"
Karsten Hopp 716012
! :" Test exceptions
Karsten Hopp 716012
! :fun Exe(e)
Karsten Hopp 716012
! :   execute a:e
Karsten Hopp 716012
! :endfun
Karsten Hopp 716012
! py3 << EOF
Karsten Hopp 716012
  Exe = vim.bindeval('function("Exe")')
Karsten Hopp 716012
  ee('vim.command("throw \'abc\'")')
Karsten Hopp 716012
  ee('Exe("throw \'def\'")')
Karsten Hopp 716012
*** ../vim-7.3.1065/src/testdir/test87.ok	2013-05-30 13:14:06.000000000 +0200
Karsten Hopp 716012
--- src/testdir/test87.ok	2013-05-30 13:25:22.000000000 +0200
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 418,426 ****
Karsten Hopp 716012
  ['a', 'b', 'c']
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
! (<class 'vim.error'>, error('abc',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('def',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('ghi',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim(echoerr):jkl',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
! (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
--- 418,1070 ----
Karsten Hopp 716012
  ['a', 'b', 'c']
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
  [2, 2]
Karsten Hopp 716012
! > Output
Karsten Hopp 716012
! >> OutputSetattr
Karsten Hopp 716012
! del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Karsten Hopp 716012
! sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('softspace must be an integer',))
Karsten Hopp 716012
! sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute',))
Karsten Hopp 716012
! >> OutputWrite
Karsten Hopp 716012
! sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
Karsten Hopp 716012
! >> OutputWriteLines
Karsten Hopp 716012
! sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Karsten Hopp 716012
! sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError('writelines() requires list of strings',))
Karsten Hopp 716012
! >>> Testing *Iter* using sys.stdout.writelines(%s)
Karsten Hopp 716012
! sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! > VimCommand
Karsten Hopp 716012
! vim.command(1):(<class 'TypeError'>, TypeError('must be str, not int',))
Karsten Hopp 716012
! > VimToPython
Karsten Hopp 716012
! > VimEval
Karsten Hopp 716012
! vim.eval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
Karsten Hopp 716012
! > VimEvalPy
Karsten Hopp 716012
! vim.bindeval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
Karsten Hopp 716012
! > VimStrwidth
Karsten Hopp 716012
! vim.strwidth(1):(<class 'TypeError'>, TypeError('must be str, not int',))
Karsten Hopp 716012
! > Dictionary
Karsten Hopp 716012
! >> DictionaryConstructor
Karsten Hopp 716012
! vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2',))
Karsten Hopp 716012
! >> DictionarySetattr
Karsten Hopp 716012
! del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Karsten Hopp 716012
! d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Karsten Hopp 716012
! d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! >> _DictionaryItem
Karsten Hopp 716012
! d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
Karsten Hopp 716012
! >>> Testing StringToChars using d.get(%s)
Karsten Hopp 716012
! d.get(1):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.get(u"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Karsten Hopp 716012
! dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
Karsten Hopp 716012
! >> DictionaryIterNext
Karsten Hopp 716012
! for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
Karsten Hopp 716012
! >> DictionaryAssItem
Karsten Hopp 716012
! dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
Karsten Hopp 716012
! >>> Testing StringToChars using d[%s] = 1
Karsten Hopp 716012
! d[1] = 1:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d[u"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {%s : 1}
Karsten Hopp 716012
! d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {u"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
Karsten Hopp 716012
! d["a"] = {"abc" : {1 : 1}}:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {"abc" : {u"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = {"abc" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({u"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = {"abc" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = {"abc" : %s}
Karsten Hopp 716012
! d["a"] = {"abc" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"abc" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
Karsten Hopp 716012
! d["a"] = {"abc" : None}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Karsten Hopp 716012
! d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d["a"] = %s
Karsten Hopp 716012
! d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d["a"] = %s
Karsten Hopp 716012
! d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> DictionaryUpdate
Karsten Hopp 716012
! >>> kwargs
Karsten Hopp 716012
! >>> iter
Karsten Hopp 716012
! d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(%s)
Karsten Hopp 716012
! d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({%s : 1})
Karsten Hopp 716012
! d.update({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({"abc" : {%s : 1}})
Karsten Hopp 716012
! d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update({"abc" : %s})
Karsten Hopp 716012
! d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update({"abc" : %s})
Karsten Hopp 716012
! d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({%s : 1}))
Karsten Hopp 716012
! d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
Karsten Hopp 716012
! d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update(%s)
Karsten Hopp 716012
! d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update(%s)
Karsten Hopp 716012
! d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Karsten Hopp 716012
! d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update(((%s, 0),))
Karsten Hopp 716012
! d.update(((1, 0),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update(((u"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {%s : 1}),))
Karsten Hopp 716012
! d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {u"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {u"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
Karsten Hopp 716012
! d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Karsten Hopp 716012
! d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({u"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using d.update((("a", %s),))
Karsten Hopp 716012
! d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using d.update((("a", %s),))
Karsten Hopp 716012
! d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> DictionaryPopItem
Karsten Hopp 716012
! d.popitem(1, 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Karsten Hopp 716012
! >> DictionaryHasKey
Karsten Hopp 716012
! d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
Karsten Hopp 716012
! > List
Karsten Hopp 716012
! >> ListConstructor
Karsten Hopp 716012
! vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
Karsten Hopp 716012
! vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List(%s)
Karsten Hopp 716012
! vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{%s : 1}])
Karsten Hopp 716012
! vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{u"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
Karsten Hopp 716012
! vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{"abc" : {u"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([{"abc" : %s}])
Karsten Hopp 716012
! vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
Karsten Hopp 716012
! vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Karsten Hopp 716012
! vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({u"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
Karsten Hopp 716012
! vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using vim.List([%s])
Karsten Hopp 716012
! vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using vim.List([%s])
Karsten Hopp 716012
! vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListItem
Karsten Hopp 716012
! l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
Karsten Hopp 716012
! >> ListAssItem
Karsten Hopp 716012
! ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
Karsten Hopp 716012
! l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
Karsten Hopp 716012
! >> ListAssSlice
Karsten Hopp 716012
! ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = %s
Karsten Hopp 716012
! l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{%s : 1}]
Karsten Hopp 716012
! l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{u"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
Karsten Hopp 716012
! l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{"abc" : {u"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [{"abc" : %s}]
Karsten Hopp 716012
! l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
Karsten Hopp 716012
! l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Karsten Hopp 716012
! l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({u"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l[:] = [%s]
Karsten Hopp 716012
! l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l[:] = [%s]
Karsten Hopp 716012
! l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListConcatInPlace
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend(%s)
Karsten Hopp 716012
! l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{%s : 1}])
Karsten Hopp 716012
! l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{u"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
Karsten Hopp 716012
! l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{"abc" : {u"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([{"abc" : %s}])
Karsten Hopp 716012
! l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
Karsten Hopp 716012
! l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Karsten Hopp 716012
! l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({u"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
Karsten Hopp 716012
! l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using l.extend([%s])
Karsten Hopp 716012
! l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using l.extend([%s])
Karsten Hopp 716012
! l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >> ListSetattr
Karsten Hopp 716012
! del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Karsten Hopp 716012
! l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
Karsten Hopp 716012
! > Function
Karsten Hopp 716012
! >> FunctionConstructor
Karsten Hopp 716012
! vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function does not exist',))
Karsten Hopp 716012
! vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function does not exist',))
Karsten Hopp 716012
! vim.Function("xxx#non#existent#function#xxx"):(<class 'ValueError'>, ValueError('function does not exist',))
Karsten Hopp 716012
! >> FunctionCall
Karsten Hopp 716012
! >>> Testing StringToChars using f({%s : 1})
Karsten Hopp 716012
! f({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f({"abc" : {%s : 1}})
Karsten Hopp 716012
! f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f({"abc" : %s})
Karsten Hopp 716012
! f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f({"abc" : %s})
Karsten Hopp 716012
! f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({%s : 1}))
Karsten Hopp 716012
! f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f(Mapping({"abc" : %s}))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
Karsten Hopp 716012
! f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using f(%s)
Karsten Hopp 716012
! f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using f(%s)
Karsten Hopp 716012
! f(None):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={%s : 1})
Karsten Hopp 716012
! fd(self={1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
Karsten Hopp 716012
! fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
Karsten Hopp 716012
! fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self={"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self={"abc" : %s})
Karsten Hopp 716012
! fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
Karsten Hopp 716012
! fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Karsten Hopp 716012
! fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing *Iter* using fd(self=%s)
Karsten Hopp 716012
! fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyObject using fd(self=%s)
Karsten Hopp 716012
! fd(self=None):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
Karsten Hopp 716012
! fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Karsten Hopp 716012
! fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! >>> Testing ConvertFromPyMapping using fd(self=%s)
Karsten Hopp 716012
! fd(self=[]):(<class 'AttributeError'>, AttributeError("'list' object has no attribute 'keys'",))
Karsten Hopp 716012
! <<< Finished
Karsten Hopp 716012
! > TabPage
Karsten Hopp 716012
! >> TabPageAttr
Karsten Hopp 716012
! vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
Karsten Hopp 716012
! > TabList
Karsten Hopp 716012
! >> TabListItem
Karsten Hopp 716012
! vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
Karsten Hopp 716012
! > Window
Karsten Hopp 716012
! >> WindowAttr
Karsten Hopp 716012
! vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
Karsten Hopp 716012
! >> WindowSetattr
Karsten Hopp 716012
! vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute',))
Karsten Hopp 716012
! vim.current.window.cursor = (10000000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Karsten Hopp 716012
! vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Karsten Hopp 716012
! vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
Karsten Hopp 716012
! vim.current.window.width  = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
Karsten Hopp 716012
! vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
Karsten Hopp 716012
! > WinList
Karsten Hopp 716012
! >> WinListItem
Karsten Hopp 716012
! vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
Karsten Hopp 716012
! > Buffer
Karsten Hopp 716012
! >> StringToLine (indirect)
Karsten Hopp 716012
! vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> SetBufferLine (indirect)
Karsten Hopp 716012
! vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! >> SetBufferLines (indirect)
Karsten Hopp 716012
! vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> InsertBufferLines (indirect)
Karsten Hopp 716012
! vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
Karsten Hopp 716012
! >> RBItem
Karsten Hopp 716012
! vim.current.buffer[10000000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Karsten Hopp 716012
! >> RBAsItem
Karsten Hopp 716012
! vim.current.buffer[10000000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Karsten Hopp 716012
! >> BufferAttr
Karsten Hopp 716012
! vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
Karsten Hopp 716012
! >> BufferSetattr
Karsten Hopp 716012
! vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',))
Karsten Hopp 716012
! vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! >> BufferMark
Karsten Hopp 716012
! vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',))
Karsten Hopp 716012
! vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Karsten Hopp 716012
! vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
Karsten Hopp 716012
! >> BufferRange
Karsten Hopp 716012
! vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
Karsten Hopp 716012
! > BufMap
Karsten Hopp 716012
! >> BufMapItem
Karsten Hopp 716012
! vim.buffers[None]:(<class 'TypeError'>, TypeError('key must be integer',))
Karsten Hopp 716012
! vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Karsten Hopp 716012
! > Current
Karsten Hopp 716012
! >> CurrentGetattr
Karsten Hopp 716012
! vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
Karsten Hopp 716012
! >> CurrentSetattr
Karsten Hopp 716012
! vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Karsten Hopp 716012
! vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object',))
Karsten Hopp 716012
! vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
Karsten Hopp 716012
! vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
Karsten Hopp 716012
! vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Karsten Hopp 716012
! vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
Karsten Hopp 716012
! Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
Karsten Hopp 716012
! vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
Karsten Hopp 716012
! vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
Karsten Hopp 716012
! vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
! vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
Karsten Hopp 716012
*** ../vim-7.3.1065/src/version.c	2013-05-30 13:22:07.000000000 +0200
Karsten Hopp 716012
--- src/version.c	2013-05-30 13:24:41.000000000 +0200
Karsten Hopp 716012
***************
Karsten Hopp 716012
*** 730,731 ****
Karsten Hopp 716012
--- 730,733 ----
Karsten Hopp 716012
  {   /* Add new patch number below this line */
Karsten Hopp 716012
+ /**/
Karsten Hopp 716012
+     1066,
Karsten Hopp 716012
  /**/
Karsten Hopp 716012
Karsten Hopp 716012
-- 
Karsten Hopp 716012
If Pacman had affected us as kids we'd be running around in dark rooms,
Karsten Hopp 716012
munching pills and listening to repetitive music.
Karsten Hopp 716012
                       -- Marcus Brigstocke
Karsten Hopp 716012
Karsten Hopp 716012
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 716012
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 716012
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 716012
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///