--- testdir/test86.ok 2013-05-30 13:35:15.000000000 +0200 +++ testdir/test86.failed 2013-05-31 11:20:35.000000000 +0200 @@ -754,325 +754,6 @@ ll[1:100] = "abc":(, error('list is locked',)) >>> Testing *Iter* using l[:] = %s l[:] = FailingIter():(, NotImplementedError()) -l[:] = FailingIterNext():(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using l[:] = [{%s : 1}] -l[:] = [{1 : 1}]:(, TypeError('object must be string',)) -l[:] = [{u"\0" : 1}]:(, TypeError('expected string without null bytes',)) -l[:] = [{"\0" : 1}]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}] -l[:] = [{"abc" : {1 : 1}}]:(, TypeError('object must be string',)) -l[:] = [{"abc" : {u"\0" : 1}}]:(, TypeError('expected string without null bytes',)) -l[:] = [{"abc" : {"\0" : 1}}]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}] -l[:] = [{"abc" : Mapping({1 : 1})}]:(, TypeError('object must be string',)) -l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(, TypeError('expected string without null bytes',)) -l[:] = [{"abc" : Mapping({"\0" : 1})}]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using l[:] = [{"abc" : %s}] -l[:] = [{"abc" : FailingIter()}]:(, TypeError('unable to convert to vim structure',)) -l[:] = [{"abc" : FailingIterNext()}]:(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}] -l[:] = [{"abc" : None}]:(, TypeError('unable to convert to vim structure',)) -l[:] = [{"abc" : {"": 1}}]:(, ValueError('empty keys are not allowed',)) -l[:] = [{"abc" : FailingMapping()}]:(, NotImplementedError()) -l[:] = [{"abc" : FailingMappingKey()}]:(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using l[:] = [Mapping({%s : 1})] -l[:] = [Mapping({1 : 1})]:(, TypeError('object must be string',)) -l[:] = [Mapping({u"\0" : 1})]:(, TypeError('expected string without null bytes',)) -l[:] = [Mapping({"\0" : 1})]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})] -l[:] = [Mapping({"abc" : {1 : 1}})]:(, TypeError('object must be string',)) -l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(, TypeError('expected string without null bytes',)) -l[:] = [Mapping({"abc" : {"\0" : 1}})]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})] -l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(, TypeError('object must be string',)) -l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(, TypeError('expected string without null bytes',)) -l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})] -l[:] = [Mapping({"abc" : FailingIter()})]:(, TypeError('unable to convert to vim structure',)) -l[:] = [Mapping({"abc" : FailingIterNext()})]:(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})] -l[:] = [Mapping({"abc" : None})]:(, TypeError('unable to convert to vim structure',)) -l[:] = [Mapping({"abc" : {"": 1}})]:(, ValueError('empty keys are not allowed',)) -l[:] = [Mapping({"abc" : FailingMapping()})]:(, NotImplementedError()) -l[:] = [Mapping({"abc" : FailingMappingKey()})]:(, NotImplementedError()) -<<< Finished ->>> Testing *Iter* using l[:] = [%s] -l[:] = [FailingIter()]:(, TypeError('unable to convert to vim structure',)) -l[:] = [FailingIterNext()]:(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l[:] = [%s] -l[:] = [None]:(, TypeError('unable to convert to vim structure',)) -l[:] = [{"": 1}]:(, ValueError('empty keys are not allowed',)) -l[:] = [FailingMapping()]:(, NotImplementedError()) -l[:] = [FailingMappingKey()]:(, NotImplementedError()) -<<< Finished ->> ListConcatInPlace ->>> Testing *Iter* using l.extend(%s) -l.extend(FailingIter()):(, NotImplementedError()) -l.extend(FailingIterNext()):(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using l.extend([{%s : 1}]) -l.extend([{1 : 1}]):(, TypeError('object must be string',)) -l.extend([{u"\0" : 1}]):(, TypeError('expected string without null bytes',)) -l.extend([{"\0" : 1}]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}]) -l.extend([{"abc" : {1 : 1}}]):(, TypeError('object must be string',)) -l.extend([{"abc" : {u"\0" : 1}}]):(, TypeError('expected string without null bytes',)) -l.extend([{"abc" : {"\0" : 1}}]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}]) -l.extend([{"abc" : Mapping({1 : 1})}]):(, TypeError('object must be string',)) -l.extend([{"abc" : Mapping({u"\0" : 1})}]):(, TypeError('expected string without null bytes',)) -l.extend([{"abc" : Mapping({"\0" : 1})}]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using l.extend([{"abc" : %s}]) -l.extend([{"abc" : FailingIter()}]):(, TypeError('unable to convert to vim structure',)) -l.extend([{"abc" : FailingIterNext()}]):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}]) -l.extend([{"abc" : None}]):(, TypeError('unable to convert to vim structure',)) -l.extend([{"abc" : {"": 1}}]):(, ValueError('empty keys are not allowed',)) -l.extend([{"abc" : FailingMapping()}]):(, NotImplementedError()) -l.extend([{"abc" : FailingMappingKey()}]):(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using l.extend([Mapping({%s : 1})]) -l.extend([Mapping({1 : 1})]):(, TypeError('object must be string',)) -l.extend([Mapping({u"\0" : 1})]):(, TypeError('expected string without null bytes',)) -l.extend([Mapping({"\0" : 1})]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})]) -l.extend([Mapping({"abc" : {1 : 1}})]):(, TypeError('object must be string',)) -l.extend([Mapping({"abc" : {u"\0" : 1}})]):(, TypeError('expected string without null bytes',)) -l.extend([Mapping({"abc" : {"\0" : 1}})]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})]) -l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(, TypeError('object must be string',)) -l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(, TypeError('expected string without null bytes',)) -l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using l.extend([Mapping({"abc" : %s})]) -l.extend([Mapping({"abc" : FailingIter()})]):(, TypeError('unable to convert to vim structure',)) -l.extend([Mapping({"abc" : FailingIterNext()})]):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})]) -l.extend([Mapping({"abc" : None})]):(, TypeError('unable to convert to vim structure',)) -l.extend([Mapping({"abc" : {"": 1}})]):(, ValueError('empty keys are not allowed',)) -l.extend([Mapping({"abc" : FailingMapping()})]):(, NotImplementedError()) -l.extend([Mapping({"abc" : FailingMappingKey()})]):(, NotImplementedError()) -<<< Finished ->>> Testing *Iter* using l.extend([%s]) -l.extend([FailingIter()]):(, TypeError('unable to convert to vim structure',)) -l.extend([FailingIterNext()]):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using l.extend([%s]) -l.extend([None]):(, TypeError('unable to convert to vim structure',)) -l.extend([{"": 1}]):(, ValueError('empty keys are not allowed',)) -l.extend([FailingMapping()]):(, NotImplementedError()) -l.extend([FailingMappingKey()]):(, NotImplementedError()) -<<< Finished ->> ListSetattr -del l.locked:(, AttributeError('cannot delete vim.List attributes',)) -l.locked = FailingTrue():(, NotImplementedError()) -l.xxx = True:(, AttributeError('cannot set this attribute',)) -> Function ->> FunctionConstructor -vim.Function("123"):(, ValueError('unnamed function does not exist',)) -vim.Function("xxx_non_existent_function_xxx"):(, ValueError('function does not exist',)) -vim.Function("xxx#non#existent#function#xxx"):NOT FAILED ->> FunctionCall ->>> Testing StringToChars using f({%s : 1}) -f({1 : 1}):(, TypeError('object must be string',)) -f({u"\0" : 1}):(, TypeError('expected string without null bytes',)) -f({"\0" : 1}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using f({"abc" : {%s : 1}}) -f({"abc" : {1 : 1}}):(, TypeError('object must be string',)) -f({"abc" : {u"\0" : 1}}):(, TypeError('expected string without null bytes',)) -f({"abc" : {"\0" : 1}}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using f({"abc" : Mapping({%s : 1})}) -f({"abc" : Mapping({1 : 1})}):(, TypeError('object must be string',)) -f({"abc" : Mapping({u"\0" : 1})}):(, TypeError('expected string without null bytes',)) -f({"abc" : Mapping({"\0" : 1})}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using f({"abc" : %s}) -f({"abc" : FailingIter()}):(, TypeError('unable to convert to vim structure',)) -f({"abc" : FailingIterNext()}):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using f({"abc" : %s}) -f({"abc" : None}):(, TypeError('unable to convert to vim structure',)) -f({"abc" : {"": 1}}):(, ValueError('empty keys are not allowed',)) -f({"abc" : FailingMapping()}):(, NotImplementedError()) -f({"abc" : FailingMappingKey()}):(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using f(Mapping({%s : 1})) -f(Mapping({1 : 1})):(, TypeError('object must be string',)) -f(Mapping({u"\0" : 1})):(, TypeError('expected string without null bytes',)) -f(Mapping({"\0" : 1})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}})) -f(Mapping({"abc" : {1 : 1}})):(, TypeError('object must be string',)) -f(Mapping({"abc" : {u"\0" : 1}})):(, TypeError('expected string without null bytes',)) -f(Mapping({"abc" : {"\0" : 1}})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})})) -f(Mapping({"abc" : Mapping({1 : 1})})):(, TypeError('object must be string',)) -f(Mapping({"abc" : Mapping({u"\0" : 1})})):(, TypeError('expected string without null bytes',)) -f(Mapping({"abc" : Mapping({"\0" : 1})})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using f(Mapping({"abc" : %s})) -f(Mapping({"abc" : FailingIter()})):(, TypeError('unable to convert to vim structure',)) -f(Mapping({"abc" : FailingIterNext()})):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s})) -f(Mapping({"abc" : None})):(, TypeError('unable to convert to vim structure',)) -f(Mapping({"abc" : {"": 1}})):(, ValueError('empty keys are not allowed',)) -f(Mapping({"abc" : FailingMapping()})):(, NotImplementedError()) -f(Mapping({"abc" : FailingMappingKey()})):(, NotImplementedError()) -<<< Finished ->>> Testing *Iter* using f(%s) -f(FailingIter()):(, TypeError('unable to convert to vim structure',)) -f(FailingIterNext()):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using f(%s) -f(None):(, TypeError('unable to convert to vim structure',)) -f({"": 1}):(, ValueError('empty keys are not allowed',)) -f(FailingMapping()):(, NotImplementedError()) -f(FailingMappingKey()):(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using fd(self={%s : 1}) -fd(self={1 : 1}):(, TypeError('object must be string',)) -fd(self={u"\0" : 1}):(, TypeError('expected string without null bytes',)) -fd(self={"\0" : 1}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using fd(self={"abc" : {%s : 1}}) -fd(self={"abc" : {1 : 1}}):(, TypeError('object must be string',)) -fd(self={"abc" : {u"\0" : 1}}):(, TypeError('expected string without null bytes',)) -fd(self={"abc" : {"\0" : 1}}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})}) -fd(self={"abc" : Mapping({1 : 1})}):(, TypeError('object must be string',)) -fd(self={"abc" : Mapping({u"\0" : 1})}):(, TypeError('expected string without null bytes',)) -fd(self={"abc" : Mapping({"\0" : 1})}):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using fd(self={"abc" : %s}) -fd(self={"abc" : FailingIter()}):(, TypeError('unable to convert to vim structure',)) -fd(self={"abc" : FailingIterNext()}):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using fd(self={"abc" : %s}) -fd(self={"abc" : None}):(, TypeError('unable to convert to vim structure',)) -fd(self={"abc" : {"": 1}}):(, ValueError('empty keys are not allowed',)) -fd(self={"abc" : FailingMapping()}):(, NotImplementedError()) -fd(self={"abc" : FailingMappingKey()}):(, NotImplementedError()) -<<< Finished ->>> Testing StringToChars using fd(self=Mapping({%s : 1})) -fd(self=Mapping({1 : 1})):(, TypeError('object must be string',)) -fd(self=Mapping({u"\0" : 1})):(, TypeError('expected string without null bytes',)) -fd(self=Mapping({"\0" : 1})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}})) -fd(self=Mapping({"abc" : {1 : 1}})):(, TypeError('object must be string',)) -fd(self=Mapping({"abc" : {u"\0" : 1}})):(, TypeError('expected string without null bytes',)) -fd(self=Mapping({"abc" : {"\0" : 1}})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})})) -fd(self=Mapping({"abc" : Mapping({1 : 1})})):(, TypeError('object must be string',)) -fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(, TypeError('expected string without null bytes',)) -fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(, TypeError('expected string without null bytes',)) -<<< Finished ->>> Testing *Iter* using fd(self=Mapping({"abc" : %s})) -fd(self=Mapping({"abc" : FailingIter()})):(, TypeError('unable to convert to vim structure',)) -fd(self=Mapping({"abc" : FailingIterNext()})):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s})) -fd(self=Mapping({"abc" : None})):(, TypeError('unable to convert to vim structure',)) -fd(self=Mapping({"abc" : {"": 1}})):(, ValueError('empty keys are not allowed',)) -fd(self=Mapping({"abc" : FailingMapping()})):(, NotImplementedError()) -fd(self=Mapping({"abc" : FailingMappingKey()})):(, NotImplementedError()) -<<< Finished ->>> Testing *Iter* using fd(self=%s) -fd(self=FailingIter()):(, TypeError('unable to convert object to vim dictionary',)) -fd(self=FailingIterNext()):(, TypeError('unable to convert object to vim dictionary',)) -<<< Finished ->>> Testing ConvertFromPyObject using fd(self=%s) -fd(self=None):(, TypeError('unable to convert object to vim dictionary',)) -fd(self={"": 1}):(, ValueError('empty keys are not allowed',)) -fd(self=FailingMapping()):(, NotImplementedError()) -fd(self=FailingMappingKey()):(, NotImplementedError()) -<<< Finished ->>> Testing ConvertFromPyMapping using fd(self=%s) -fd(self=[]):(, TypeError('unable to convert object to vim dictionary',)) -<<< Finished -> TabPage ->> TabPageAttr -vim.current.tabpage.xxx:(, AttributeError('xxx',)) -> TabList ->> TabListItem -vim.tabpages[1000]:(, IndexError('no such tab page',)) -> Window ->> WindowAttr -vim.current.window.xxx:(, AttributeError('xxx',)) ->> WindowSetattr -vim.current.window.buffer = 0:(, TypeError('readonly attribute',)) -vim.current.window.cursor = (10000000000, 100000000):(, error('cursor position outside buffer',)) -vim.current.window.cursor = True:(, TypeError('argument must be 2-item sequence, not bool',)) -vim.current.window.height = "abc":(, TypeError('an integer is required',)) -vim.current.window.width = "abc":(, TypeError('an integer is required',)) -vim.current.window.xxxxxx = True:(, AttributeError('xxxxxx',)) -> WinList ->> WinListItem -vim.windows[1000]:(, IndexError('no such window',)) -> Buffer ->> StringToLine (indirect) -vim.current.buffer[0] = "\na":(, error('string cannot contain newlines',)) ->> SetBufferLine (indirect) -vim.current.buffer[0] = True:(, TypeError('bad argument type for built-in operation',)) ->> SetBufferLines (indirect) -vim.current.buffer[:] = True:(, TypeError('bad argument type for built-in operation',)) -vim.current.buffer[:] = ["\na", "bc"]:(, error('string cannot contain newlines',)) ->> InsertBufferLines (indirect) -vim.current.buffer.append(None):(, TypeError('bad argument type for built-in operation',)) -vim.current.buffer.append(["\na", "bc"]):(, error('string cannot contain newlines',)) -vim.current.buffer.append("\nbc"):(, error('string cannot contain newlines',)) ->> RBItem -vim.current.buffer[10000000000]:(, IndexError('line number out of range',)) ->> RBAsItem -vim.current.buffer[10000000000] = "":(, IndexError('line number out of range',)) ->> BufferAttr -vim.current.buffer.xxx:(, AttributeError('xxx',)) ->> BufferSetattr -vim.current.buffer.name = True:(, TypeError('object must be string',)) -vim.current.buffer.xxx = True:(, AttributeError('xxx',)) ->> BufferMark -vim.current.buffer.mark(0):(, TypeError('must be string, not int',)) -vim.current.buffer.mark("abc"):(, ValueError('mark name must be a single character',)) -vim.current.buffer.mark("!"):(, error('invalid mark name',)) ->> BufferRange -vim.current.buffer.range(1, 2, 3):(, TypeError('function takes exactly 2 arguments (3 given)',)) -> BufMap ->> BufMapItem -vim.buffers[None]:(, TypeError('key must be integer',)) -vim.buffers[100000000]:(, KeyError(100000000,)) -> Current ->> CurrentGetattr -vim.current.xxx:(, AttributeError('xxx',)) ->> CurrentSetattr -vim.current.line = True:(, TypeError('bad argument type for built-in operation',)) -vim.current.buffer = True:(, TypeError('expected vim.Buffer object',)) -vim.current.window = True:(, TypeError('expected vim.Window object',)) -vim.current.tabpage = True:(, TypeError('expected vim.TabPage object',)) -vim.current.xxx = True:(, AttributeError('xxx',)) vim.command("throw 'abc'"):(, error('abc',)) Exe("throw 'def'"):(, error('def',)) vim.eval("Exe('throw ''ghi''')"):(, error('ghi',)) --- testdir/test87.ok 2013-05-31 11:10:34.000000000 +0200 +++ testdir/test87.failed 2013-05-31 11:20:37.000000000 +0200 @@ -1014,7 +1014,7 @@ vim.current.window.xxx:(, AttributeError("'vim.window' object has no attribute 'xxx'",)) >> WindowSetattr vim.current.window.buffer = 0:(, TypeError('readonly attribute',)) -vim.current.window.cursor = (10000000000, 100000000):(, error('cursor position outside buffer',)) +vim.current.window.cursor = (10000000000, 100000000):(, OverflowError('Python int too large to convert to C long',)) vim.current.window.cursor = True:(, TypeError('argument must be 2-item sequence, not bool',)) vim.current.window.height = "abc":(, TypeError('an integer is required',)) vim.current.window.width = "abc":(, TypeError('an integer is required',)) @@ -1035,9 +1035,9 @@ vim.current.buffer.append(["\na", "bc"]):(, error('string cannot contain newlines',)) vim.current.buffer.append("\nbc"):(, error('string cannot contain newlines',)) >> RBItem -vim.current.buffer[10000000000]:(, IndexError('line number out of range',)) ->> RBAsItem -vim.current.buffer[10000000000] = "":(, IndexError('line number out of range',)) +vim.current.buffer[10000000000]::(, OverflowError('Python int too large to convert to C long',)) + +vim.current.buffer[10000000000] = "":NOT FAILED >> BufferAttr vim.current.buffer.xxx:(, AttributeError("'vim.buffer' object has no attribute 'xxx'",)) >> BufferSetattr