blob: e616544b5b455c2cd27d97c6005b7b6d90de18b6 [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 Moolenaar1028f4d2014-01-14 16:55:00 +0100115wopts iters equal: 1
116bopts iters equal: 1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200117>>> paste
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100118 g/w/b:1/0/0
119 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200120 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200121 p/wopts1! KeyError
122 inv: 2! KeyError
123 wopts1! KeyError
124 wopts2! KeyError
125 wopts3! KeyError
126 p/bopts1! KeyError
127 inv: 2! KeyError
128 bopts1! KeyError
129 bopts2! KeyError
130 bopts3! KeyError
131 G: 1
132 W: 1:1 2:1 3:1 4:1
133 B: 1:1 2:1 3:1 4:1
134 del wopts3! KeyError
135 del bopts3! KeyError
136 G: 1
137 W: 1:1 2:1 3:1 4:1
138 B: 1:1 2:1 3:1 4:1
139>>> previewheight
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100140 g/w/b:1/0/0
141 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200142 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200143 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200144 p/wopts1! KeyError
145 inv: 'a'! KeyError
146 wopts1! KeyError
147 wopts2! KeyError
148 wopts3! KeyError
149 p/bopts1! KeyError
150 inv: 'a'! KeyError
151 bopts1! KeyError
152 bopts2! KeyError
153 bopts3! KeyError
154 G: 5
155 W: 1:5 2:5 3:5 4:5
156 B: 1:5 2:5 3:5 4:5
157 del wopts3! KeyError
158 del bopts3! KeyError
159 G: 5
160 W: 1:5 2:5 3:5 4:5
161 B: 1:5 2:5 3:5 4:5
162>>> operatorfunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100163 g/w/b:1/0/0
164 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200165 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200166 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200167 p/wopts1! KeyError
168 inv: 2! KeyError
169 wopts1! KeyError
170 wopts2! KeyError
171 wopts3! KeyError
172 p/bopts1! KeyError
173 inv: 2! KeyError
174 bopts1! KeyError
175 bopts2! KeyError
176 bopts3! KeyError
177 G: 'A'
178 W: 1:'A' 2:'A' 3:'A' 4:'A'
179 B: 1:'A' 2:'A' 3:'A' 4:'A'
180 del wopts3! KeyError
181 del bopts3! KeyError
182 G: 'A'
183 W: 1:'A' 2:'A' 3:'A' 4:'A'
184 B: 1:'A' 2:'A' 3:'A' 4:'A'
185>>> number
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100186 g/w/b:0/1/0
187 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200188 p/gopts1! KeyError
189 inv: 0! KeyError
190 gopts1! KeyError
191 p/wopts1: False
192 p/bopts1! KeyError
193 inv: 0! KeyError
194 bopts1! KeyError
195 bopts2! KeyError
196 bopts3! KeyError
197 G: 0
198 W: 1:1 2:1 3:0 4:0
199 B: 1:1 2:1 3:0 4:0
200 del wopts3! ValueError
201 del bopts3! KeyError
202 G: 0
203 W: 1:1 2:1 3:0 4:0
204 B: 1:1 2:1 3:0 4:0
205>>> numberwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100206 g/w/b:0/1/0
207 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200208 p/gopts1! KeyError
209 inv: -100! KeyError
210 gopts1! KeyError
211 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200212 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200213 p/bopts1! KeyError
214 inv: -100! KeyError
215 bopts1! KeyError
216 bopts2! KeyError
217 bopts3! KeyError
218 G: 8
219 W: 1:3 2:5 3:2 4:8
220 B: 1:3 2:5 3:2 4:8
221 del wopts3! ValueError
222 del bopts3! KeyError
223 G: 8
224 W: 1:3 2:5 3:2 4:8
225 B: 1:3 2:5 3:2 4:8
226>>> colorcolumn
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100227 g/w/b:0/1/0
228 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200229 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200230 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200231 gopts1! KeyError
232 p/wopts1: b''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200233 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200234 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200235 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 bopts1! KeyError
237 bopts2! KeyError
238 bopts3! KeyError
239 G: ''
240 W: 1:'+2' 2:'+3' 3:'+1' 4:''
241 B: 1:'+2' 2:'+3' 3:'+1' 4:''
242 del wopts3! ValueError
243 del bopts3! KeyError
244 G: ''
245 W: 1:'+2' 2:'+3' 3:'+1' 4:''
246 B: 1:'+2' 2:'+3' 3:'+1' 4:''
247>>> statusline
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100248 g/w/b:1/1/0
249 g/w/b (in):1/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200250 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200251 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200253 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200254 p/bopts1! KeyError
255 inv: 0! KeyError
256 bopts1! KeyError
257 bopts2! KeyError
258 bopts3! KeyError
259 G: '1'
260 W: 1:'2' 2:'4' 3:'1' 4:'1'
261 B: 1:'2' 2:'4' 3:'1' 4:'1'
262 del bopts3! KeyError
263 G: '1'
264 W: 1:'2' 2:'1' 3:'1' 4:'1'
265 B: 1:'2' 2:'1' 3:'1' 4:'1'
266>>> autoindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100267 g/w/b:0/0/1
268 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200269 p/gopts1! KeyError
270 inv: 2! KeyError
271 gopts1! KeyError
272 p/wopts1! KeyError
273 inv: 2! KeyError
274 wopts1! KeyError
275 wopts2! KeyError
276 wopts3! KeyError
277 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200278 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200279 W: 1:0 2:1 3:0 4:1
280 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281 del wopts3! KeyError
282 del bopts3! ValueError
283 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200284 W: 1:0 2:1 3:0 4:1
285 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200286>>> shiftwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100287 g/w/b:0/0/1
288 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 p/gopts1! KeyError
290 inv: 3! KeyError
291 gopts1! KeyError
292 p/wopts1! KeyError
293 inv: 3! KeyError
294 wopts1! KeyError
295 wopts2! KeyError
296 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200297 p/bopts1: 8
298 G: 8
299 W: 1:0 2:2 3:8 4:1
300 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200301 del wopts3! KeyError
302 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200303 G: 8
304 W: 1:0 2:2 3:8 4:1
305 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200306>>> omnifunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100307 g/w/b:0/0/1
308 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200309 p/gopts1! KeyError
310 inv: 1! KeyError
311 gopts1! KeyError
312 p/wopts1! KeyError
313 inv: 1! KeyError
314 wopts1! KeyError
315 wopts2! KeyError
316 wopts3! KeyError
317 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200318 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200319 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200320 W: 1:'A' 2:'B' 3:'' 4:'C'
321 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 del wopts3! KeyError
323 del bopts3! ValueError
324 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200325 W: 1:'A' 2:'B' 3:'' 4:'C'
326 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200327>>> preserveindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100328 g/w/b:0/0/1
329 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200330 p/gopts1! KeyError
331 inv: 2! KeyError
332 gopts1! KeyError
333 p/wopts1! KeyError
334 inv: 2! KeyError
335 wopts1! KeyError
336 wopts2! KeyError
337 wopts3! KeyError
338 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200339 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200340 W: 1:0 2:1 3:0 4:1
341 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200342 del wopts3! KeyError
343 del bopts3! ValueError
344 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200345 W: 1:0 2:1 3:0 4:1
346 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200347>>> path
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100348 g/w/b:1/0/1
349 g/w/b (in):1/0/1
Bram Moolenaar04188112013-06-01 20:32:12 +0200350 p/gopts1: b'.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200351 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200352 p/wopts1! KeyError
353 inv: 0! KeyError
354 wopts1! KeyError
355 wopts2! KeyError
356 wopts3! KeyError
357 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200358 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200359 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200360 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
361 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200362 del wopts3! KeyError
363 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200364 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
365 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200366First line
367First line
368def
369First line
370Second line
371Third line
372(7, 2)
373<buffer test87.in><buffer >
374baz
375bar
376Second line
377Third line
378foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003791:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003801:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200381testdir/foo
3825:BufFilePre:5
3835:BufFilePost:5
384testdir/bar
3851:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003861:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200387testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200388valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200389i:<buffer test87.in>
390i2:<buffer test87.in>
391i:<buffer a>
392i3:<buffer test87.in>
3931:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003948:<buffer a>=<buffer a>
3959:<buffer b>=<buffer b>
39610:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003974
398i4:<buffer test87.in>
399i4:<buffer test87.in>
400StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200401Number of tabs: 4
402Current tab pages:
403 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
404 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200405 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200406 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
407 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200408 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200409 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
410 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200411 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
412 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200413 <tabpage 3>(4): 4 windows, current is <window 0>
414 Windows:
415 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
416 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
417 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
418 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
419Number of windows in current tab page: 4
420Current tab page: <tabpage 3>
421Current window: <window 0>: <window 0> is <window 0>
422Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
423ValueError at assigning foreign tab window
424Type error at assigning None to vim.current.window
425Type error at assigning None to vim.current.tabpage
426Type error at assigning None to vim.current.buffer
427Current tab page: <tabpage 2>
428Current window: <window 0>
429Current buffer: <buffer test87.in>
430Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200431w.valid: [True, False]
432t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200433vim.vars:Dictionary:True
434vim.options:Options:True
435vim.bindeval("{}"):Dictionary:True
436vim.bindeval("[]"):List:True
437vim.bindeval("function('tr')"):Function:True
438vim.current.buffer:Buffer:True
439vim.current.range:Range:True
440vim.current.window:Window:True
441vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200442current:__dir__,buffer,line,range,tabpage,window
443buffer:__dir__,append,mark,name,number,options,range,valid,vars
444window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
445tabpage:__dir__,number,valid,vars,window,windows
446range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200447dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200448list:__dir__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200449function:__dir__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200450output:__dir__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200451{}
452{'a': 1}
453{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200454[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200455['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200456function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200457'
458abcdef
459line :
460abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200461abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200462line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200463abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200464['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200465['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200466['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200467[2, 2]
468[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004691
4701
471function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200472b'testdir'
473test87.in
474b'src'
475testdir/test87.in
476b'testdir'
477test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200478> Output
479>> OutputSetattr
480del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200481>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200482sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200483sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
484sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
485<<< Finished
486>>> Testing NumberToLong using sys.stderr.softspace = %s
487sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
488sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
489sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
490<<< Finished
Bram Moolenaarc476e522013-06-23 13:46:40 +0200491sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200492>> OutputWrite
493sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
494>> OutputWriteLines
495sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200496sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200497>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200498sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
499sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200500<<< Finished
501> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200502>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200503vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200504vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
505vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
506<<< Finished
507vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200508> VimToPython
509> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200510>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200511vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200512vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
513vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
514<<< Finished
515vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200516> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200517>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200518vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200519vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
520vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
521<<< Finished
522vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200523> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200524>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200525vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200526vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
527vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
528<<< Finished
529> VimForeachRTP
530vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
531vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
532vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
533vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
534> import
535import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
536import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200537import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100538> Options
539>> OptionsItem
540vim.options["abcQ"]:(<class 'KeyError'>, KeyError('abcQ',))
541vim.options[""]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
542>>> Testing StringToChars using vim.options[%s]
543vim.options[1]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
544vim.options[b"\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
545vim.options["\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
546<<< Finished
547>> OptionsContains
548>>> Testing StringToChars using %s in vim.options
5491 in vim.options:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
550b"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
551"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
552<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200553> Dictionary
554>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200555vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200556>> DictionarySetattr
557del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200558d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200559vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200560d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
561d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200562>> _DictionaryItem
563d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
564>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200565d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200566d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200567d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
568<<< Finished
569d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200570dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100571>> DictionaryContains
572"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
5730 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574>> DictionaryIterNext
575for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
576>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200577dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200579d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200580d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200581d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
582<<< Finished
583>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200584d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200585d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200586d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
587<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200588>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
589d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
590d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
591d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200592<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200593>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
594d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
595d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
596d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200597<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200598>>> Testing *Iter* using d["a"] = {"abcF" : %s}
599d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200600d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200601<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200602>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
603d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
604d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
605d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200606d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
607d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
608d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609<<< Finished
610>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200611d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200612d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200613d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
614<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200615>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
616d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
617d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
618d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200619<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200620>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
621d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
622d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
623d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200624<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200625>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
626d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200627d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200628<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200629>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
630d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
631d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
632d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200633d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
634d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
635d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
637>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200638d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200639d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200640<<< Finished
641>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200642d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200643d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200644d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200645d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
646d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
647d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>> DictionaryUpdate
650>>> kwargs
651>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200652d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
653d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100654d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200655>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200656d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
657d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200658<<< Finished
659>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200660d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200661d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200662d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
663<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200664>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
665d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
666d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
667d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200668<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200669>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
670d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
671d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
672d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200673<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200674>>> Testing *Iter* using d.update({"abcF" : %s})
675d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200676d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200677<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200678>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
679d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
680d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
681d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200682d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
683d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
684d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685<<< Finished
686>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200687d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200688d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200689d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
690<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200691>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
692d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
693d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
694d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200695<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200696>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
697d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
698d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
699d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200700<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200701>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
702d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200703d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200704<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200705>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
706d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
707d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
708d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200709d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
710d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
711d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200712<<< Finished
713>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200714d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
715d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
717>>> Testing ConvertFromPyObject using d.update(%s)
718d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200719d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200720d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200721d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
722d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
723d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724<<< Finished
725>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200726d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200727d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200728d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
729<<< Finished
730>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200731d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200732d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200733d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
734<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200735>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
736d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
737d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
738d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200739<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200740>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
741d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
742d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
743d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200744<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200745>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
746d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200747d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200748<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200749>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
750d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
751d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
752d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200753d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
754d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
755d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756<<< Finished
757>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200758d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200759d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200760d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
761<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200762>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
763d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
764d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
765d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200766<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200767>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
768d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
769d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
770d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200771<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200772>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
773d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200774d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200775<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200776>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
777d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
778d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
779d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200780d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
781d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
782d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200783<<< Finished
784>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200785d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200786d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787<<< Finished
788>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200789d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200790d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200791d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200792d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
793d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
794d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795<<< Finished
796>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200797d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200798>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200799d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200800> List
801>> ListConstructor
802vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
803vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
804>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200805vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
806vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200807<<< Finished
808>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200809vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200810vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200811vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
812<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200813>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
814vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
815vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
816vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200817<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200818>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
819vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
820vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
821vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200822<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200823>>> Testing *Iter* using vim.List([{"abcF" : %s}])
824vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200825vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200827>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
828vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
829vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
830vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200831vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
832vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
833vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
835>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200836vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200837vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200838vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
839<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200840>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
841vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
842vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
843vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200844<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200845>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
846vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
847vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
848vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200849<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200850>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
851vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200852vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200853<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200854>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
855vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
856vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
857vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200858vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
859vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
860vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200861<<< Finished
862>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200863vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200864vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200865<<< Finished
866>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200867vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200868vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200869vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200870vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
871vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
872vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873<<< Finished
874>> ListItem
875l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
876>> ListAssItem
877ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
878l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
879>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200880ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200881>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200882l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
883l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200884<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100885nel[1:10:2] = "abcK":(<class 'ValueError'>, ValueError('attempt to assign sequence of size greater than 2 to extended slice',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100886(b'a', b'b', b'c', b'O')
887nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
888(b'a', b'b', b'c', b'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100889nel[1:1:-1] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size greater than 0 to extended slice',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100890(b'a', b'b', b'c', b'O')
891nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
892(b'a', b'b', b'c', b'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200894l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200895l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200896l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
897<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200898>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
899l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
900l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
901l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200902<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200903>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
904l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
905l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
906l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200908>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
909l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200910l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200911<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200912>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
913l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
914l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
915l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200916l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
917l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
918l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919<<< Finished
920>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200921l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200922l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200923l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
924<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200925>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
926l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
927l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
928l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200929<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200930>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
931l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
932l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
933l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200934<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200935>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
936l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200937l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200938<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200939>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
940l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
941l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
942l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200943l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
944l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
945l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946<<< Finished
947>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200948l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200949l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200950<<< Finished
951>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200952l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200953l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200954l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200955l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
956l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
957l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200958<<< Finished
959>> ListConcatInPlace
960>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200961l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
962l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200963<<< Finished
964>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200965l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200966l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200967l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
968<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200969>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
970l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
971l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
972l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200973<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200974>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
975l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
976l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
977l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200978<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200979>>> Testing *Iter* using l.extend([{"abcF" : %s}])
980l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200981l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200982<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200983>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
984l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
985l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
986l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200987l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
988l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
989l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200990<<< Finished
991>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200992l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200993l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
995<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200996>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
997l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
998l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
999l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001000<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001001>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1002l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1003l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1004l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001005<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001006>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1007l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001008l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001009<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001010>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1011l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1012l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1013l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001014l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1015l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1016l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
1018>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001019l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
1022>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001023l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001024l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001025l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1027l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1028l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>> ListSetattr
1031del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001032l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001033l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001034> Function
1035>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001036vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
1037vim.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 +02001038vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039>> FunctionCall
1040>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001041f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001042f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001043f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1044<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001045>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1046f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1047f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1048f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001050>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1051f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1052f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1053f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001054<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001055>>> Testing *Iter* using f({"abcF" : %s})
1056f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001057f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001058<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001059>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1060f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1061f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1062f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001063f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1064f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1065f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001066<<< Finished
1067>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001068f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001069f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001070f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1071<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001072>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1073f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1074f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1075f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001076<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001077>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1078f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1079f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1080f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001081<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001082>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1083f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001084f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001085<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001086>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1087f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1088f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1089f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001090f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1091f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1092f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001093<<< Finished
1094>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001095f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001096f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001097<<< Finished
1098>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001099f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001100f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001101f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001102f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1103f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1104f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001105<<< Finished
1106>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001107fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001108fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001109fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1110<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001111>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1112fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1113fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1114fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001115<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001116>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1117fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1118fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1119fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001120<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001121>>> Testing *Iter* using fd(self={"abcF" : %s})
1122fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001123fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001124<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001125>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1126fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1127fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1128fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001129fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1130fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1131fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001132<<< Finished
1133>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001134fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001135fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001136fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1137<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001138>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1139fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1140fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1141fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001142<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001143>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1144fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1145fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1146fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001147<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001148>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1149fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001150fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001151<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001152>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1153fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1154fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1155fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001156fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1157fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1158fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001159<<< Finished
1160>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001161fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1162fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001163<<< Finished
1164>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001165fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001166fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001167fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001168fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1169fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1170fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001171<<< Finished
1172>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001173fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001174<<< Finished
1175> TabPage
1176>> TabPageAttr
1177vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1178> TabList
1179>> TabListItem
1180vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1181> Window
1182>> WindowAttr
1183vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1184>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001185vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001186vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001187vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001188>>> Testing NumberToLong using vim.current.window.height = %s
1189vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1190vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1191vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1192<<< Finished
1193>>> Testing NumberToLong using vim.current.window.width = %s
1194vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1195vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1196vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1197<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001198vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1199> WinList
1200>> WinListItem
1201vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1202> Buffer
1203>> StringToLine (indirect)
1204vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001205vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001206>> SetBufferLine (indirect)
1207vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001208>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001209vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1210vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1211>> InsertBufferLines (indirect)
1212vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1213vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1214vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1215>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001216vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001217>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001218vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001219>> BufferAttr
1220vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1221>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001222vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001223vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1224>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001225vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001226vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001227vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1228>> BufferRange
1229vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1230> BufMap
1231>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001232vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001233>>> Testing NumberToLong using vim.buffers[%s]
1234vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1235vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001236vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
1237vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001238<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001239> Current
1240>> CurrentGetattr
1241vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1242>> CurrentSetattr
1243vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001244vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1245vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1246vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001247vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001248['.']
1249'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012503,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001251before
1252after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001253pythonx/topmodule/__init__.py
1254pythonx/topmodule/submodule/__init__.py
1255pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001256vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001257Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1258vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1259vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1260vim.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 +01001261vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001262vim.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 +01001263Caught KeyboardInterrupt
1264Running :put
1265No exception
1266