diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-23 13:00:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-23 13:00:44 +0200 |
commit | 389a1793f40b149ed8553fb75e7ee40bc684d8c5 (patch) | |
tree | 971523c08fe053e9dc314e634bc9b719d855f368 /src/testdir | |
parent | 6c85e7f3be87fa4a669e8f080d527a3982e8e96c (diff) | |
download | vim-git-389a1793f40b149ed8553fb75e7ee40bc684d8c5.tar.gz |
updated for version 7.3.1227v7.3.1227
Problem: Inconsistent string conversion.
Solution: Use 'encoding' instead of utf-8. Use METH_O in place of
METH_VARARGS where appropriate. (ZyX)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test86.ok | 12 | ||||
-rw-r--r-- | src/testdir/test87.ok | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/testdir/test86.ok b/src/testdir/test86.ok index 05d194338..27a137233 100644 --- a/src/testdir/test86.ok +++ b/src/testdir/test86.ok @@ -446,14 +446,14 @@ sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, N sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",) sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',) > VimCommand -vim.command(1):TypeError:('must be string, not int',) +vim.command(1):TypeError:('object must be string',) > VimToPython > VimEval -vim.eval(1):TypeError:('must be string, not int',) +vim.eval(1):TypeError:('object must be string',) > VimEvalPy -vim.bindeval(1):TypeError:('must be string, not int',) +vim.bindeval(1):TypeError:('object must be string',) > VimStrwidth -vim.strwidth(1):TypeError:('must be string, not int',) +vim.strwidth(1):TypeError:('object must be string',) > Dictionary >> DictionaryConstructor vim.Dictionary("abc"):ValueError:('expected sequence element of size 2',) @@ -683,7 +683,7 @@ d.update((("a", FailingMappingKey()),)):NotImplementedError:() >> DictionaryPopItem d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',) >> DictionaryHasKey -d.has_key():TypeError:('function takes exactly 1 argument (0 given)',) +d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',) > List >> ListConstructor vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',) @@ -1065,7 +1065,7 @@ vim.current.buffer.xxx:AttributeError:('xxx',) 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(0):TypeError:('object must be string',) vim.current.buffer.mark("abc"):ValueError:('mark name must be a single character',) vim.current.buffer.mark("!"):error:('invalid mark name',) >> BufferRange diff --git a/src/testdir/test87.ok b/src/testdir/test87.ok index 414dc9e42..7ee1a1ca2 100644 --- a/src/testdir/test87.ok +++ b/src/testdir/test87.ok @@ -439,14 +439,14 @@ sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplemen sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) <<< Finished > VimCommand -vim.command(1):(<class 'TypeError'>, TypeError('must be str, not int',)) +vim.command(1):(<class 'TypeError'>, TypeError('object must be string',)) > VimToPython > VimEval -vim.eval(1):(<class 'TypeError'>, TypeError('must be str, not int',)) +vim.eval(1):(<class 'TypeError'>, TypeError('object must be string',)) > VimEvalPy -vim.bindeval(1):(<class 'TypeError'>, TypeError('must be str, not int',)) +vim.bindeval(1):(<class 'TypeError'>, TypeError('object must be string',)) > VimStrwidth -vim.strwidth(1):(<class 'TypeError'>, TypeError('must be str, not int',)) +vim.strwidth(1):(<class 'TypeError'>, TypeError('object must be string',)) > Dictionary >> DictionaryConstructor vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2',)) @@ -680,7 +680,7 @@ d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImple >> DictionaryPopItem d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',)) >> DictionaryHasKey -d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',)) +d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',)) > List >> ListConstructor vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',)) @@ -1074,7 +1074,7 @@ vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' o vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',)) vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',)) >> BufferMark -vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',)) +vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('object must be string',)) vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',)) vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',)) >> BufferRange |