vim/openEuler-fix-test87-failed.patch
2022-09-06 17:18:05 +08:00

47 lines
2.6 KiB
Diff

From bac247b1f2043aaafb2aa618cd2b767545c5ece4 Mon Sep 17 00:00:00 2001
From: wangjiang <wangjiang37@h-partners.com>
Date: Wed, 31 Aug 2022 10:33:35 +0800
Subject: [PATCH] fix test87 failed
---
src/testdir/test87.ok | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/testdir/test87.ok b/src/testdir/test87.ok
index 7ddea8f..00902f6 100644
--- a/src/testdir/test87.ok
+++ b/src/testdir/test87.ok
@@ -672,7 +672,7 @@ vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instan
vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
<<< Finished
-vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
+vim.command("", 2):(<class 'TypeError'>, TypeError('vim.command() takes exactly one argument (2 given)',))
> VimToPython
> VimEval
>>> Testing StringToChars using vim.eval(%s)
@@ -698,7 +698,7 @@ vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null'
vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
-vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
+vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('vim.foreach_rtp() takes exactly one argument (2 given)',))
> import
import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
import failing_import:(<class 'ImportError'>, ImportError())
@@ -962,9 +962,9 @@ d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImple
d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
<<< Finished
>> DictionaryPopItem
-d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
+d.popitem(1, 2):(<class 'TypeError'>, TypeError('dictionary.popitem() takes no arguments (2 given)',))
>> DictionaryHasKey
-d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
+d.has_key():(<class 'TypeError'>, TypeError('dictionary.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)',))
--
2.33.0