blob: 42cb0259c8b047bc7c5c0ed464dba1ecdb3bc064 [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020071
8['-1', '0', '1', 'b', 'f']
9['asd', -1L, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >]
10[('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('b', <vim.list object at >), ('f', <vim.Function '1'>)]
Bram Moolenaardb913952012-06-29 12:54:53 +020011'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020012'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020013'1' : 'asd'
14'b' : [1, 2, function('strlen')]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020015'f' : function('1')
Bram Moolenaardb913952012-06-29 12:54:53 +020016[0, function('strlen')]
17[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020018[1, 2, function('strlen')]
19[1, 2, function('strlen')]
201
21'asd'
222
23True
24False
25True
26False
27['0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029('0', -1L)
Bram Moolenaara9922d62013-05-30 13:01:18 +020030None
31[]
Bram Moolenaardb913952012-06-29 12:54:53 +020032[0, 1, 2, 3]
33[0, 1, 2, 3]
34[0, 1, 3]
35[0, 1]
36[0, 1]
37[0, 1]
38[0, 1, 2, 3]
39[0, 1, 2, 3]
40[0, 2, 3]
41[2, 3]
42[2, 3]
43[2, 3]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010044[1, 3]
45[0, 2]
46[0, 1, 2, 3]
Bram Moolenaardb913952012-06-29 12:54:53 +020047['a', 0, 1, 2, 3]
48[0, 'b', 2, 3]
49[0, 1, 'c']
50[0, 1, 2, 3, 'd']
51[0, 1, 2, 'e', 3]
52['f', 2, 3]
53[0, 1, 'g', 2, 3]
54['h']
Bram Moolenaar063a46b2014-01-14 16:36:51 +010055[0, 1, 10, 3, 20, 5, 6, 7]
56[0, 1, 2, 3, 20, 5, 10, 7]
57[0, 1, 2, 3, 4, 5, 6, 7]
58[0, 1, 2, 3, 4, 5, 6, 7]
59[0, 1, 2, 3, 4, 5, 6, 7]
Bram Moolenaardb913952012-06-29 12:54:53 +020060[0, 1, 2, 3]
61[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
62[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
63[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
Bram Moolenaar9fee7d42013-11-28 17:04:43 +010064l[1](1, 2, 3):error:('Vim:E725: Calling dict function without Dictionary: DictNew',)
65f(1, 2, 3):error:('Vim:E117: Unknown function: New',)
Bram Moolenaardb913952012-06-29 12:54:53 +020066[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020067KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020068TypeError
69TypeError
70ValueError
71TypeError
72TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020073KeyError
74KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020075d : locked:0;scope:0
76dl : locked:1;scope:0
77v: : locked:2;scope:1
78g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020079d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020080dl:{'def': 1}
81l : locked:0
82ll : locked:1
83l:[0]
84ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020085[0, 1, 2]
86['a', 'b']
87['c', 1]
88['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200890.0
Bram Moolenaarc11073c2012-09-05 19:17:42 +020090"\0": Vim(let):E859:
91{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010092undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +020093vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010094[1]
95[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar24b11fb2013-04-05 19:32:36 +020096[0, 1, 2, 3]
97[2, 3, 4, 5]
98[0, 1]
99[4, 5]
100[2, 3]
101[]
102[2, 3]
103[]
104[0, 1, 2, 3, 4, 5]
105[0, 1, 2, 3, 4, 5]
106[0, 1, 2, 3, 4, 5]
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100107[4, 3]
108[0, 2, 4]
109[]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +0200110Abc
111bac
112def
113bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200114jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200115>>> paste
116 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200117 p/wopts1! KeyError
118 inv: 2! KeyError
119 wopts1! KeyError
120 wopts2! KeyError
121 wopts3! KeyError
122 p/bopts1! KeyError
123 inv: 2! KeyError
124 bopts1! KeyError
125 bopts2! KeyError
126 bopts3! KeyError
127 G: 1
128 W: 1:1 2:1 3:1 4:1
129 B: 1:1 2:1 3:1 4:1
130 del wopts3! KeyError
131 del bopts3! KeyError
132 G: 1
133 W: 1:1 2:1 3:1 4:1
134 B: 1:1 2:1 3:1 4:1
135>>> previewheight
136 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200137 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200138 p/wopts1! KeyError
139 inv: 'a'! KeyError
140 wopts1! KeyError
141 wopts2! KeyError
142 wopts3! KeyError
143 p/bopts1! KeyError
144 inv: 'a'! KeyError
145 bopts1! KeyError
146 bopts2! KeyError
147 bopts3! KeyError
148 G: 5
149 W: 1:5 2:5 3:5 4:5
150 B: 1:5 2:5 3:5 4:5
151 del wopts3! KeyError
152 del bopts3! KeyError
153 G: 5
154 W: 1:5 2:5 3:5 4:5
155 B: 1:5 2:5 3:5 4:5
156>>> operatorfunc
157 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200158 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200159 p/wopts1! KeyError
160 inv: 2! KeyError
161 wopts1! KeyError
162 wopts2! KeyError
163 wopts3! KeyError
164 p/bopts1! KeyError
165 inv: 2! KeyError
166 bopts1! KeyError
167 bopts2! KeyError
168 bopts3! KeyError
169 G: 'A'
170 W: 1:'A' 2:'A' 3:'A' 4:'A'
171 B: 1:'A' 2:'A' 3:'A' 4:'A'
172 del wopts3! KeyError
173 del bopts3! KeyError
174 G: 'A'
175 W: 1:'A' 2:'A' 3:'A' 4:'A'
176 B: 1:'A' 2:'A' 3:'A' 4:'A'
177>>> number
178 p/gopts1! KeyError
179 inv: 0! KeyError
180 gopts1! KeyError
181 p/wopts1: False
182 p/bopts1! KeyError
183 inv: 0! KeyError
184 bopts1! KeyError
185 bopts2! KeyError
186 bopts3! KeyError
187 G: 0
188 W: 1:1 2:1 3:0 4:0
189 B: 1:1 2:1 3:0 4:0
190 del wopts3! ValueError
191 del bopts3! KeyError
192 G: 0
193 W: 1:1 2:1 3:0 4:0
194 B: 1:1 2:1 3:0 4:0
195>>> numberwidth
196 p/gopts1! KeyError
197 inv: -100! KeyError
198 gopts1! KeyError
199 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200200 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200201 p/bopts1! KeyError
202 inv: -100! KeyError
203 bopts1! KeyError
204 bopts2! KeyError
205 bopts3! KeyError
206 G: 8
207 W: 1:3 2:5 3:2 4:8
208 B: 1:3 2:5 3:2 4:8
209 del wopts3! ValueError
210 del bopts3! KeyError
211 G: 8
212 W: 1:3 2:5 3:2 4:8
213 B: 1:3 2:5 3:2 4:8
214>>> colorcolumn
215 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200216 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200217 gopts1! KeyError
218 p/wopts1: ''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200219 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200220 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200221 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200222 bopts1! KeyError
223 bopts2! KeyError
224 bopts3! KeyError
225 G: ''
226 W: 1:'+2' 2:'+3' 3:'+1' 4:''
227 B: 1:'+2' 2:'+3' 3:'+1' 4:''
228 del wopts3! ValueError
229 del bopts3! KeyError
230 G: ''
231 W: 1:'+2' 2:'+3' 3:'+1' 4:''
232 B: 1:'+2' 2:'+3' 3:'+1' 4:''
233>>> statusline
234 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200235 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200237 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200238 p/bopts1! KeyError
239 inv: 0! KeyError
240 bopts1! KeyError
241 bopts2! KeyError
242 bopts3! KeyError
243 G: '1'
244 W: 1:'2' 2:'4' 3:'1' 4:'1'
245 B: 1:'2' 2:'4' 3:'1' 4:'1'
246 del bopts3! KeyError
247 G: '1'
248 W: 1:'2' 2:'1' 3:'1' 4:'1'
249 B: 1:'2' 2:'1' 3:'1' 4:'1'
250>>> autoindent
251 p/gopts1! KeyError
252 inv: 2! KeyError
253 gopts1! KeyError
254 p/wopts1! KeyError
255 inv: 2! KeyError
256 wopts1! KeyError
257 wopts2! KeyError
258 wopts3! KeyError
259 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200260 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200261 W: 1:0 2:1 3:0 4:1
262 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200263 del wopts3! KeyError
264 del bopts3! ValueError
265 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200266 W: 1:0 2:1 3:0 4:1
267 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200268>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200269 p/gopts1! KeyError
270 inv: 3! KeyError
271 gopts1! KeyError
272 p/wopts1! KeyError
273 inv: 3! KeyError
274 wopts1! KeyError
275 wopts2! KeyError
276 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200277 p/bopts1: 8
278 G: 8
279 W: 1:0 2:2 3:8 4:1
280 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281 del wopts3! KeyError
282 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200283 G: 8
284 W: 1:0 2:2 3:8 4:1
285 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200286>>> omnifunc
287 p/gopts1! KeyError
288 inv: 1! KeyError
289 gopts1! KeyError
290 p/wopts1! KeyError
291 inv: 1! KeyError
292 wopts1! KeyError
293 wopts2! KeyError
294 wopts3! KeyError
295 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200296 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200297 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200298 W: 1:'A' 2:'B' 3:'' 4:'C'
299 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200300 del wopts3! KeyError
301 del bopts3! ValueError
302 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200303 W: 1:'A' 2:'B' 3:'' 4:'C'
304 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200305>>> preserveindent
306 p/gopts1! KeyError
307 inv: 2! KeyError
308 gopts1! KeyError
309 p/wopts1! KeyError
310 inv: 2! KeyError
311 wopts1! KeyError
312 wopts2! KeyError
313 wopts3! KeyError
314 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200315 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200316 W: 1:0 2:1 3:0 4:1
317 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200318 del wopts3! KeyError
319 del bopts3! ValueError
320 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200321 W: 1:0 2:1 3:0 4:1
322 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200323>>> path
Bram Moolenaar04188112013-06-01 20:32:12 +0200324 p/gopts1: '.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200325 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200326 p/wopts1! KeyError
327 inv: 0! KeyError
328 wopts1! KeyError
329 wopts2! KeyError
330 wopts3! KeyError
331 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200332 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200333 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200334 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
335 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200336 del wopts3! KeyError
337 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200338 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
339 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200340First line
341First line
342def
343First line
344Second line
345Third line
346(7, 2)
347<buffer test86.in><buffer >
348baz
349bar
350Second line
351Third line
352foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003531:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003541:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200355testdir/foo
3565:BufFilePre:5
3575:BufFilePost:5
358testdir/bar
3591:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003601:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200361testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200362valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200363i:<buffer test86.in>
364i2:<buffer test86.in>
365i:<buffer a>
366i3:<buffer test86.in>
3671:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003688:<buffer a>=<buffer a>
3699:<buffer b>=<buffer b>
37010:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003714
372i4:<buffer test86.in>
373i4:<buffer test86.in>
374StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200375Number of tabs: 4
376Current tab pages:
377 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
378 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200379 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200380 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
381 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200382 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200383 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
384 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200385 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
386 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200387 <tabpage 3>(4): 4 windows, current is <window 0>
388 Windows:
389 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
390 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
391 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
392 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
393Number of windows in current tab page: 4
394Current tab page: <tabpage 3>
395Current window: <window 0>: <window 0> is <window 0>
396Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
397ValueError at assigning foreign tab window
398Type error at assigning None to vim.current.window
399Type error at assigning None to vim.current.tabpage
400Type error at assigning None to vim.current.buffer
401Current tab page: <tabpage 2>
402Current window: <window 0>
403Current buffer: <buffer test86.in>
404Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200405w.valid: [True, False]
406t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200407vim.vars:Dictionary:True
408vim.options:Options:True
409vim.bindeval("{}"):Dictionary:True
410vim.bindeval("[]"):List:True
411vim.bindeval("function('tr')"):Function:True
412vim.current.buffer:Buffer:True
413vim.current.range:Range:True
414vim.current.window:Window:True
415vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200416current:__dir__,__members__,buffer,line,range,tabpage,window
417buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
418window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
419tabpage:__dir__,__members__,number,valid,vars,window,windows
420range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200421dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200422list:__dir__,__members__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200423function:__dir__,__members__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200424output:__dir__,__members__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200425{}
426{'a': 1}
427{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200428[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200429['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200430function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200431'
432abcdef
433line :
434abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200435abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200436line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200437abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200438['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200439['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200440['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200441[2, 2]
442[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004431
4441
445function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200446testdir
447test86.in
448src
449testdir/test86.in
450testdir
451test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200452> Output
453>> OutputSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200454del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200455>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200456sys.stdout.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200457sys.stdout.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
458sys.stdout.softspace = -1:ValueError:('number must be greater or equal to zero',)
459<<< Finished
460>>> Testing NumberToLong using sys.stderr.softspace = %s
461sys.stderr.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
462sys.stderr.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
463sys.stderr.softspace = -1:ValueError:('number must be greater or equal to zero',)
464<<< Finished
Bram Moolenaarc476e522013-06-23 13:46:40 +0200465sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200466>> OutputWrite
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200467sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200468>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200469sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200470sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200471>>> Testing *Iter* using sys.stdout.writelines(%s)
472sys.stdout.writelines(FailingIter()):NotImplementedError:('iter',)
473sys.stdout.writelines(FailingIterNext()):NotImplementedError:('next',)
474<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200475> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200476>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200477vim.command(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200478vim.command(u"\0"):TypeError:('expected string without null bytes',)
479vim.command("\0"):TypeError:('expected string without null bytes',)
480<<< Finished
481vim.command("", 2):TypeError:('command() takes exactly one argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200482> VimToPython
483> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200484>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200485vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200486vim.eval(u"\0"):TypeError:('expected string without null bytes',)
487vim.eval("\0"):TypeError:('expected string without null bytes',)
488<<< Finished
489vim.eval("", FailingTrue()):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200490> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200491>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200492vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200493vim.bindeval(u"\0"):TypeError:('expected string without null bytes',)
494vim.bindeval("\0"):TypeError:('expected string without null bytes',)
495<<< Finished
496vim.eval("", 2):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200497> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200498>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200499vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200500vim.strwidth(u"\0"):TypeError:('expected string without null bytes',)
501vim.strwidth("\0"):TypeError:('expected string without null bytes',)
502<<< Finished
503> VimForeachRTP
504vim.foreach_rtp(None):TypeError:("'NoneType' object is not callable",)
505vim.foreach_rtp(NoArgsCall()):TypeError:('__call__() takes exactly 1 argument (2 given)',)
506vim.foreach_rtp(FailingCall()):NotImplementedError:('call',)
507vim.foreach_rtp(int, 2):TypeError:('foreach_rtp() takes exactly one argument (2 given)',)
508> import
509import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
510import failing_import:ImportError:('No module named failing_import',)
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200511import failing:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512> Dictionary
513>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200514vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200515>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200516del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200517d.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200518vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200519d.scope = True:AttributeError:('cannot set attribute scope',)
520d.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200521>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200522d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200523>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200524d.get(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200525d.get(u"\0"):TypeError:('expected string without null bytes',)
526d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200527<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200528d.pop("a"):KeyError:('a',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200529dl.pop("a"):error:('dictionary is locked',)
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100530>> DictionaryContains
531"" in d:ValueError:('empty keys are not allowed',)
5320 in d:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200533>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200534for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200536dl["b"] = 1:error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200537>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200538d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200539d[u"\0"] = 1:TypeError:('expected string without null bytes',)
540d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200541<<< Finished
542>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200543d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200544d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
545d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200546<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200547>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
548d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',)
549d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
550d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200551<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200552>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
553d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',)
554d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
555d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200556<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200557>>> Testing *Iter* using d["a"] = {"abcF" : %s}
558d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200559d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200560<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200561>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
562d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',)
563d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',)
564d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200565d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:('keys',)
566d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:('getitem:mappingkey',)
567d["a"] = {"abcF" : FailingNumber()}:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200568<<< Finished
569>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200570d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200571d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
572d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200573<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200574>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
575d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
576d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
577d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200579>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
580d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
581d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
582d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200583<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200584>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
585d["a"] = Mapping({"abcG" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200586d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200587<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200588>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
589d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',)
590d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',)
591d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200592d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:('keys',)
593d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
594d["a"] = Mapping({"abcG" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200595<<< Finished
596>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200597d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200598d["a"] = FailingIterNext():NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200599<<< Finished
600>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200601d["a"] = None:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200602d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
603d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200604d["a"] = FailingMapping():NotImplementedError:('keys',)
605d["a"] = FailingMappingKey():NotImplementedError:('getitem:mappingkey',)
606d["a"] = FailingNumber():TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200607<<< Finished
608>> DictionaryUpdate
609>>> kwargs
610>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200611d.update(FailingMapping()):NotImplementedError:('keys',)
612d.update([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100613d.update([FailingIterNextN(1)]):NotImplementedError:('next N',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200614>>> Testing *Iter* using d.update(%s)
615d.update(FailingIter()):NotImplementedError:('iter',)
616d.update(FailingIterNext()):NotImplementedError:('next',)
617<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200618>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200619d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200620d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
621d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200622<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200623>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
624d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
625d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
626d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200627<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200628>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
629d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
630d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
631d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200632<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200633>>> Testing *Iter* using d.update({"abcF" : %s})
634d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200635d.update({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200637>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
638d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
639d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
640d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200641d.update({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
642d.update({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
643d.update({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200644<<< Finished
645>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200646d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200647d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
648d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200649<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200650>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
651d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
652d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
653d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200654<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200655>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
656d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
657d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
658d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200659<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200660>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
661d.update(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200662d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200663<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200664>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
665d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
666d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
667d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200668d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
669d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
670d.update(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200671<<< Finished
672>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200673d.update(FailingIter()):NotImplementedError:('iter',)
674d.update(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675<<< Finished
676>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200677d.update(None):TypeError:("'NoneType' object is not iterable",)
678d.update({"": 1}):ValueError:('empty keys are not allowed',)
679d.update({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200680d.update(FailingMapping()):NotImplementedError:('keys',)
681d.update(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
682d.update(FailingNumber()):TypeError:("'FailingNumber' object is not iterable",)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200683<<< Finished
684>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200685d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200686d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
687d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200688<<< Finished
689>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200690d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200691d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
692d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200693<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200694>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
695d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',)
696d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
697d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200698<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200699>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
700d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',)
701d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
702d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200703<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200704>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
705d.update((("a", {"abcF" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200706d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200707<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200708>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
709d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',)
710d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
711d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200712d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:('keys',)
713d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:('getitem:mappingkey',)
714d.update((("a", {"abcF" : FailingNumber()}),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200715<<< Finished
716>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200717d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200718d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
719d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200720<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200721>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
722d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',)
723d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
724d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200725<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200726>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
727d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',)
728d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
729d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200730<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200731>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
732d.update((("a", Mapping({"abcG" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200733d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200735>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
736d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',)
737d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
738d.update((("a", Mapping({"abcG" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200739d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:('keys',)
740d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:('getitem:mappingkey',)
741d.update((("a", Mapping({"abcG" : FailingNumber()})),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200742<<< Finished
743>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200744d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200745d.update((("a", FailingIterNext()),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746<<< Finished
747>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200748d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200749d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
750d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200751d.update((("a", FailingMapping()),)):NotImplementedError:('keys',)
752d.update((("a", FailingMappingKey()),)):NotImplementedError:('getitem:mappingkey',)
753d.update((("a", FailingNumber()),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200754<<< Finished
755>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200756d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200757>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200758d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759> List
760>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200761vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
762vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200763>>> Testing *Iter* using vim.List(%s)
764vim.List(FailingIter()):NotImplementedError:('iter',)
765vim.List(FailingIterNext()):NotImplementedError:('next',)
766<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200767>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200768vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200769vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
770vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200771<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200772>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
773vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
774vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
775vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200776<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200777>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
778vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
779vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
780vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200781<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200782>>> Testing *Iter* using vim.List([{"abcF" : %s}])
783vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200784vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200785<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200786>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
787vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
788vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
789vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200790vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
791vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
792vim.List([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200793<<< Finished
794>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200795vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200796vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
797vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200798<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200799>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
800vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
801vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
802vim.List([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200803<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200804>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
805vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
806vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
807vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200809>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
810vim.List([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200811vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200813>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
814vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
815vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
816vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200817vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
818vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
819vim.List([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200820<<< Finished
821>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200822vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200823vim.List([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200824<<< Finished
825>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200826vim.List([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200827vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
828vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200829vim.List([FailingMapping()]):NotImplementedError:('keys',)
830vim.List([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
831vim.List([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832<<< Finished
833>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200834l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200835>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200836ll[1] = 2:error:('list is locked',)
837l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200838>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200839ll[1:100] = "abcJ":error:('list is locked',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200840>>> Testing *Iter* using l[:] = %s
841l[:] = FailingIter():NotImplementedError:('iter',)
842l[:] = FailingIterNext():NotImplementedError:('next',)
843<<< Finished
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100844nel[1:10:2] = "abcK":ValueError:('attempt to assign sequence of size greater then 2 to extended slice',)
845('a', 'b', 'c', 'O')
846nel[1:10:2] = "a":ValueError:('attempt to assign sequence of size 1 to extended slice of size 2',)
847('a', 'b', 'c', 'O')
848nel[1:1:-1] = "a":ValueError:('attempt to assign sequence of size greater then 0 to extended slice',)
849('a', 'b', 'c', 'O')
850nel[:] = FailingIterNextN(2):NotImplementedError:('next N',)
851('a', 'b', 'c', 'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200852>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200853l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200854l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
855l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200856<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200857>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
858l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',)
859l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
860l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200861<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200862>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
863l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',)
864l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
865l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200866<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200867>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
868l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200869l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200870<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200871>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
872l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',)
873l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',)
874l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200875l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:('keys',)
876l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:('getitem:mappingkey',)
877l[:] = [{"abcF" : FailingNumber()}]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200878<<< Finished
879>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200880l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200881l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
882l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200883<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200884>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
885l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',)
886l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
887l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200888<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200889>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
890l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',)
891l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
892l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200894>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
895l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200896l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200898>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
899l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',)
900l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',)
901l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200902l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:('keys',)
903l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:('getitem:mappingkey',)
904l[:] = [Mapping({"abcG" : FailingNumber()})]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905<<< Finished
906>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200907l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200908l[:] = [FailingIterNext()]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200909<<< Finished
910>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200911l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200912l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
913l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200914l[:] = [FailingMapping()]:NotImplementedError:('keys',)
915l[:] = [FailingMappingKey()]:NotImplementedError:('getitem:mappingkey',)
916l[:] = [FailingNumber()]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200917<<< Finished
918>> ListConcatInPlace
Bram Moolenaardee2e312013-06-23 16:35:47 +0200919>>> Testing *Iter* using l.extend(%s)
920l.extend(FailingIter()):NotImplementedError:('iter',)
921l.extend(FailingIterNext()):NotImplementedError:('next',)
922<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200923>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200924l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200925l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
926l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200927<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200928>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
929l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
930l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
931l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200932<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200933>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
934l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
935l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
936l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200937<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200938>>> Testing *Iter* using l.extend([{"abcF" : %s}])
939l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200940l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200941<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200942>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
943l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
944l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
945l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200946l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
947l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
948l.extend([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200949<<< Finished
950>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200951l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200952l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
953l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200954<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200955>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
956l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
957l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
958l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200959<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200960>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
961l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
962l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
963l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200964<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200965>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
966l.extend([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200967l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200969>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
970l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
971l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
972l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200973l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
974l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
975l.extend([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200976<<< Finished
977>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200978l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200979l.extend([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200980<<< Finished
981>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200982l.extend([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200983l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
984l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200985l.extend([FailingMapping()]):NotImplementedError:('keys',)
986l.extend([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
987l.extend([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200988<<< Finished
989>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200990del l.locked:AttributeError:('cannot delete vim.List attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200991l.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200992l.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200993> Function
994>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +0200995vim.Function("123"):ValueError:('unnamed function 123 does not exist',)
996vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +0200997vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200998>> FunctionCall
999>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001000f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001001f({u"\0" : 1}):TypeError:('expected string without null bytes',)
1002f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001003<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001004>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1005f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1006f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1007f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001008<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001009>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1010f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1011f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1012f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001013<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001014>>> Testing *Iter* using f({"abcF" : %s})
1015f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001016f({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001018>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1019f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1020f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1021f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001022f({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1023f({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1024f({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001025<<< Finished
1026>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001027f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001028f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1029f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001030<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001031>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1032f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1033f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1034f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001035<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001036>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1037f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1038f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1039f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001040<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001041>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1042f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001043f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001044<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001045>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1046f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1047f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1048f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001049f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1050f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1051f(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052<<< Finished
1053>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001054f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001055f(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001056<<< Finished
1057>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001058f(None):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001059f({"": 1}):ValueError:('empty keys are not allowed',)
1060f({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001061f(FailingMapping()):NotImplementedError:('keys',)
1062f(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1063f(FailingNumber()):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001064<<< Finished
1065>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001066fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001067fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
1068fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001069<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001070>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1071fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1072fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1073fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001074<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001075>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1076fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1077fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1078fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001079<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001080>>> Testing *Iter* using fd(self={"abcF" : %s})
1081fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001082fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001083<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001084>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1085fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1086fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1087fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001088fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1089fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1090fd(self={"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001091<<< Finished
1092>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001093fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001094fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1095fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001096<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001097>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1098fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1099fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1100fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001101<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001102>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1103fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1104fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1105fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001106<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001107>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1108fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001109fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001110<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001111>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1112fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1113fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1114fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001115fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1116fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1117fd(self=Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001118<<< Finished
1119>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001120fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',)
1121fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001122<<< Finished
1123>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001124fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001125fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1126fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001127fd(self=FailingMapping()):NotImplementedError:('keys',)
1128fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1129fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001130<<< Finished
1131>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001132fd(self=[]):TypeError:('unable to convert list to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001133<<< Finished
1134> TabPage
1135>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001136vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001137> TabList
1138>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001139vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001140> Window
1141>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001142vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001143>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001144vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001145vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1146vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001147>>> Testing NumberToLong using vim.current.window.height = %s
1148vim.current.window.height = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1149vim.current.window.height = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1150vim.current.window.height = -1:ValueError:('number must be greater or equal to zero',)
1151<<< Finished
1152>>> Testing NumberToLong using vim.current.window.width = %s
1153vim.current.window.width = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1154vim.current.window.width = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1155vim.current.window.width = -1:ValueError:('number must be greater or equal to zero',)
1156<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001157vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001158> WinList
1159>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001160vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001161> Buffer
1162>> StringToLine (indirect)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001163vim.current.buffer[0] = u"\na":error:('string cannot contain newlines',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001164vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001165>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001166vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001167>> SetBufferLineList (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001168vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1169vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001170>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001171vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1172vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1173vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001174>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001175vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001176>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001177vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001178>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001179vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001180>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001181vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001182vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001183>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001184vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001185vim.current.buffer.mark("abcM"):ValueError:('mark name must be a single character',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001186vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001187>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001188vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001189> BufMap
1190>> BufMapItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001191vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001192>>> Testing NumberToLong using vim.buffers[%s]
1193vim.buffers[[]]:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1194vim.buffers[None]:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1195vim.buffers[-1]:ValueError:('number must be greater then zero',)
1196vim.buffers[0]:ValueError:('number must be greater then zero',)
1197<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001198> Current
1199>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001200vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001201>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001202vim.current.line = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001203vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',)
1204vim.current.window = True:TypeError:('expected vim.Window object, but got bool',)
1205vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001206vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001207['/testdir']
1208'/testdir'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012092,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001210before
1211after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001212pythonx/topmodule/__init__.py
1213pythonx/topmodule/submodule/__init__.py
1214pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001215vim.command("throw 'abcN'"):error:('abcN',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001216Exe("throw 'def'"):error:('def',)
1217vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1218vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1219vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
Bram Moolenaar9fee7d42013-11-28 17:04:43 +01001220vim.eval("xxx_unknown_function_xxx()"):error:('Vim:E117: Unknown function: xxx_unknown_function_xxx',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001221vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
Bram Moolenaard6b8a522013-11-11 01:05:48 +01001222Caught KeyboardInterrupt
1223Running :put
1224No exception
1225