blob: 57ac1a63a9341d7e2af181fe51a951092bdbc7ba [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[b'-1', b'0', b'1', b'b', b'f']
9[-1, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >, b'asd']
10[(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >), (b'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[b'0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029(b'0', -1)
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):(<class 'vim.error'>, error('Vim:E725: Calling dict function without Dictionary: DictNew',))
65f(1, 2, 3):(<class 'vim.error'>, 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 Moolenaarb52f4c02013-05-21 18:19:38 +020090"\0": Vim(let):E859:
91{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010092undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +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 Moolenaar063a46b2014-01-14 16:36:51 +010096[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]
107[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: b''
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: b''
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: b''
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: b''
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: b'.,..,,'
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 test87.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/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200362valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200363i:<buffer test87.in>
364i2:<buffer test87.in>
365i:<buffer a>
366i3:<buffer test87.in>
3671:<buffer test87.in>=<buffer test87.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 test87.in>
373i4:<buffer test87.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 test87.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 test87.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__,buffer,line,range,tabpage,window
417buffer:__dir__,append,mark,name,number,options,range,valid,vars
418window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
419tabpage:__dir__,number,valid,vars,window,windows
420range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200421dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200422list:__dir__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200423function:__dir__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200424output:__dir__,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 +0200446b'testdir'
447test87.in
448b'src'
449testdir/test87.in
450b'testdir'
451test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200452> Output
453>> OutputSetattr
454del sys.stdout.softspace:(<class 'AttributeError'>, 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 = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200457sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
458sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
459<<< Finished
460>>> Testing NumberToLong using sys.stderr.softspace = %s
461sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
462sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
463sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
464<<< Finished
Bram Moolenaarc476e522013-06-23 13:46:40 +0200465sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200466>> OutputWrite
467sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
468>> OutputWriteLines
469sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200470sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200471>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200472sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
473sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200474<<< Finished
475> 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):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200478vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
479vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
480<<< Finished
481vim.command("", 2):(<class 'TypeError'>, 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):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200486vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
487vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
488<<< Finished
489vim.eval("", FailingTrue()):(<class 'TypeError'>, 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):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200493vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
494vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
495<<< Finished
496vim.eval("", 2):(<class 'TypeError'>, 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):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200500vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
501vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
502<<< Finished
503> VimForeachRTP
504vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
505vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
506vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
507vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
508> import
509import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
510import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200511import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512> Dictionary
513>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200514vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200515>> DictionarySetattr
516del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200517d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200518vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200519d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
520d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200521>> _DictionaryItem
522d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
523>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200524d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200525d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200526d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
527<<< Finished
528d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200529dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100530>> DictionaryContains
531"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
5320 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200533>> DictionaryIterNext
534for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
535>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200536dl["b"] = 1:(<class 'vim.error'>, 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:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200539d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200540d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
541<<< Finished
542>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200543d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200544d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200545d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
546<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200547>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
548d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
549d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
550d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
554d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
555d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200559d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, 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}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
563d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
564d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200565d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
566d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
567d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
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}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200571d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200572d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
573<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200574>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
575d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
576d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
577d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
581d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
582d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200586d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, 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}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
590d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
591d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200592d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
593d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
594d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
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():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200598d["a"] = FailingIterNext():(<class 'NotImplementedError'>, 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:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200602d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200603d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200604d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
605d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
606d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
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()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
612d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100613d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200614>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200615d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
616d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200617<<< Finished
618>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200619d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200620d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200621d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
622<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200623>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
624d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
625d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
626d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
630d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
631d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200635d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, 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}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
639d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
640d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200641d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
642d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
643d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200647d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
649<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200650>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
651d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
652d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
653d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
657d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
658d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200662d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, 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})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
666d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
667d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200668d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
669d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
670d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
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()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
674d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675<<< Finished
676>>> Testing ConvertFromPyObject using d.update(%s)
677d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200678d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200679d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200680d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
681d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
682d.update(FailingNumber()):(<class 'TypeError'>, 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),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200686d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200687d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
688<<< Finished
689>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200690d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200691d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200692d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
693<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200694>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
695d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
696d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
697d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
701d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
702d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200706d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, 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}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
710d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
711d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200712d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
713d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
714d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200718d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200719d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
720<<< 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}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
723d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
724d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
728d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
729d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200733d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, 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})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
737d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
738d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200739d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
740d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
741d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
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()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200745d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, 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),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200749d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200750d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200751d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
752d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
753d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200754<<< Finished
755>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200756d.popitem(1, 2):(<class 'TypeError'>, 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():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759> List
760>> ListConstructor
761vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
762vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
763>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200764vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
765vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200766<<< Finished
767>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200768vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200769vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200770vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
771<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200772>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
773vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
774vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
775vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
779vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
780vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200784vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, 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}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
788vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
789vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200790vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
791vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
792vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200796vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200797vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
798<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200799>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
800vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
801vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
802vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
806vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
807vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200811vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, 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})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
815vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
816vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200817vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
818vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
819vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
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()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200823vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, 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]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200827vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200828vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200829vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
830vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
831vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832<<< Finished
833>> ListItem
834l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
835>> ListAssItem
836ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
837l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
838>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200839ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200840>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200841l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
842l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200843<<< Finished
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100844nel[1:10:2] = "abcK":(<class 'ValueError'>, ValueError('attempt to assign sequence of size greater then 2 to extended slice',))
845(b'a', b'b', b'c', b'O')
846nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
847(b'a', b'b', b'c', b'O')
848nel[1:1:-1] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size greater then 0 to extended slice',))
849(b'a', b'b', b'c', b'O')
850nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
851(b'a', b'b', b'c', b'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}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200854l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200855l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
856<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200857>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
858l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
859l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
860l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
864l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
865l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200869l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, 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}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
873l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
874l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200875l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
876l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
877l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
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})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200881l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200882l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
883<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200884>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
885l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
886l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
887l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
891l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
892l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200896l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, 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})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
900l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
901l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200902l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
903l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
904l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905<<< Finished
906>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200907l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200908l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, 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]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200912l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200913l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200914l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
915l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
916l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200917<<< Finished
918>> ListConcatInPlace
919>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200920l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
921l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200922<<< Finished
923>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200924l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200925l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200926l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
927<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200928>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
929l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
930l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
931l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
935l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
936l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200940l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, 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}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
944l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
945l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200946l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
947l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
948l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200952l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200953l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
954<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200955>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
956l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
957l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
958l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
962l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
963l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200967l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, 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})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
971l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
972l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200973l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
974l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
975l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
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()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200979l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, 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]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200983l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200984l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200985l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
986l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
987l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200988<<< Finished
989>> ListSetattr
990del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200991l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200992l.xxx = True:(<class 'AttributeError'>, 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"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
996vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, 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}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001001f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001002f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1003<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001004>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1005f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1006f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1007f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1011f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1012f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001016f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, 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}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1020f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1021f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001022f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1023f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1024f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001028f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1030<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001031>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1032f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1033f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1034f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1038f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1039f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001043f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, 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})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1047f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1048f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001049f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1050f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1051f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052<<< Finished
1053>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001054f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001055f(FailingIterNext()):(<class 'NotImplementedError'>, 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):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001059f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001060f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001061f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1062f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1063f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
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}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001067fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001068fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1069<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001070>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1071fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1072fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1073fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1077fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1078fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001082fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, 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}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1086fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1087fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001088fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1089fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1090fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
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})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001094fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001095fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1096<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001097>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1098fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1099fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1100fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1104fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1105fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
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()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001109fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, 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})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1113fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1114fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001115fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1116fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1117fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
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()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1121fd(self=FailingIterNext()):(<class 'TypeError'>, 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):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001125fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001126fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001127fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1128fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1129fd(self=FailingNumber()):(<class 'TypeError'>, 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 Moolenaar96c7dfd2013-05-31 18:46:11 +02001132fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001133<<< Finished
1134> TabPage
1135>> TabPageAttr
1136vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1137> TabList
1138>> TabListItem
1139vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1140> Window
1141>> WindowAttr
1142vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1143>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001144vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001145vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001146vim.current.window.cursor = True:(<class 'TypeError'>, 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 = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1149vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1150vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1151<<< Finished
1152>>> Testing NumberToLong using vim.current.window.width = %s
1153vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1154vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1155vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1156<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001157vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1158> WinList
1159>> WinListItem
1160vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1161> Buffer
1162>> StringToLine (indirect)
1163vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001164vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001165>> SetBufferLine (indirect)
1166vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001167>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001168vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1169vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1170>> InsertBufferLines (indirect)
1171vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1172vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1173vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1174>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001175vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001176>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001177vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001178>> BufferAttr
1179vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1180>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001181vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001182vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1183>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001184vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001185vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001186vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1187>> BufferRange
1188vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1189> BufMap
1190>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001191vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001192>>> Testing NumberToLong using vim.buffers[%s]
1193vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1194vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1195vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1196vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1197<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001198> Current
1199>> CurrentGetattr
1200vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1201>> CurrentSetattr
1202vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001203vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1204vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1205vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001206vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001207['.']
1208'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012093,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'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001216Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1217vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1218vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1219vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, 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()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001221vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, 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