blob: 1d9b6e257840b3af281f7e9f03e3636912a09d01 [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 Moolenaar77324fc2016-01-17 22:37:03 +010089py3eval("None") = 0
Bram Moolenaardb913952012-06-29 12:54:53 +0200900.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020091"\0": Vim(let):E859:
92{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010093undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020094vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010095[1]
96[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010097[0, 1, 2, 3]
98[2, 3, 4, 5]
99[0, 1]
100[4, 5]
101[2, 3]
102[]
103[2, 3]
104[]
105[0, 1, 2, 3, 4, 5]
106[0, 1, 2, 3, 4, 5]
107[0, 1, 2, 3, 4, 5]
108[4, 3]
109[0, 2, 4]
110[]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +0200111Abc
112bac
113def
114bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200115jkl
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100116wopts iters equal: 1
117bopts iters equal: 1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200118>>> paste
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100119 g/w/b:1/0/0
120 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200121 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200122 p/wopts1! KeyError
123 inv: 2! KeyError
124 wopts1! KeyError
125 wopts2! KeyError
126 wopts3! KeyError
127 p/bopts1! KeyError
128 inv: 2! KeyError
129 bopts1! KeyError
130 bopts2! KeyError
131 bopts3! KeyError
132 G: 1
133 W: 1:1 2:1 3:1 4:1
134 B: 1:1 2:1 3:1 4:1
135 del wopts3! KeyError
136 del bopts3! KeyError
137 G: 1
138 W: 1:1 2:1 3:1 4:1
139 B: 1:1 2:1 3:1 4:1
140>>> previewheight
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100141 g/w/b:1/0/0
142 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200143 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200144 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200145 p/wopts1! KeyError
146 inv: 'a'! KeyError
147 wopts1! KeyError
148 wopts2! KeyError
149 wopts3! KeyError
150 p/bopts1! KeyError
151 inv: 'a'! KeyError
152 bopts1! KeyError
153 bopts2! KeyError
154 bopts3! KeyError
155 G: 5
156 W: 1:5 2:5 3:5 4:5
157 B: 1:5 2:5 3:5 4:5
158 del wopts3! KeyError
159 del bopts3! KeyError
160 G: 5
161 W: 1:5 2:5 3:5 4:5
162 B: 1:5 2:5 3:5 4:5
163>>> operatorfunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100164 g/w/b:1/0/0
165 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200166 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200167 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200168 p/wopts1! KeyError
169 inv: 2! KeyError
170 wopts1! KeyError
171 wopts2! KeyError
172 wopts3! KeyError
173 p/bopts1! KeyError
174 inv: 2! KeyError
175 bopts1! KeyError
176 bopts2! KeyError
177 bopts3! KeyError
178 G: 'A'
179 W: 1:'A' 2:'A' 3:'A' 4:'A'
180 B: 1:'A' 2:'A' 3:'A' 4:'A'
181 del wopts3! KeyError
182 del bopts3! KeyError
183 G: 'A'
184 W: 1:'A' 2:'A' 3:'A' 4:'A'
185 B: 1:'A' 2:'A' 3:'A' 4:'A'
186>>> number
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100187 g/w/b:0/1/0
188 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200189 p/gopts1! KeyError
190 inv: 0! KeyError
191 gopts1! KeyError
192 p/wopts1: False
193 p/bopts1! KeyError
194 inv: 0! KeyError
195 bopts1! KeyError
196 bopts2! KeyError
197 bopts3! KeyError
198 G: 0
199 W: 1:1 2:1 3:0 4:0
200 B: 1:1 2:1 3:0 4:0
201 del wopts3! ValueError
202 del bopts3! KeyError
203 G: 0
204 W: 1:1 2:1 3:0 4:0
205 B: 1:1 2:1 3:0 4:0
206>>> numberwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100207 g/w/b:0/1/0
208 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200209 p/gopts1! KeyError
210 inv: -100! KeyError
211 gopts1! KeyError
212 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200213 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200214 p/bopts1! KeyError
215 inv: -100! KeyError
216 bopts1! KeyError
217 bopts2! KeyError
218 bopts3! KeyError
219 G: 8
220 W: 1:3 2:5 3:2 4:8
221 B: 1:3 2:5 3:2 4:8
222 del wopts3! ValueError
223 del bopts3! KeyError
224 G: 8
225 W: 1:3 2:5 3:2 4:8
226 B: 1:3 2:5 3:2 4:8
227>>> colorcolumn
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100228 g/w/b:0/1/0
229 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200230 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200231 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200232 gopts1! KeyError
233 p/wopts1: b''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200234 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200235 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200236 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200237 bopts1! KeyError
238 bopts2! KeyError
239 bopts3! KeyError
240 G: ''
241 W: 1:'+2' 2:'+3' 3:'+1' 4:''
242 B: 1:'+2' 2:'+3' 3:'+1' 4:''
243 del wopts3! ValueError
244 del bopts3! KeyError
245 G: ''
246 W: 1:'+2' 2:'+3' 3:'+1' 4:''
247 B: 1:'+2' 2:'+3' 3:'+1' 4:''
248>>> statusline
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100249 g/w/b:1/1/0
250 g/w/b (in):1/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200251 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200252 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200253 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200254 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200255 p/bopts1! KeyError
256 inv: 0! KeyError
257 bopts1! KeyError
258 bopts2! KeyError
259 bopts3! KeyError
260 G: '1'
261 W: 1:'2' 2:'4' 3:'1' 4:'1'
262 B: 1:'2' 2:'4' 3:'1' 4:'1'
263 del bopts3! KeyError
264 G: '1'
265 W: 1:'2' 2:'1' 3:'1' 4:'1'
266 B: 1:'2' 2:'1' 3:'1' 4:'1'
267>>> autoindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100268 g/w/b:0/0/1
269 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200270 p/gopts1! KeyError
271 inv: 2! KeyError
272 gopts1! KeyError
273 p/wopts1! KeyError
274 inv: 2! KeyError
275 wopts1! KeyError
276 wopts2! KeyError
277 wopts3! KeyError
278 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200279 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200280 W: 1:0 2:1 3:0 4:1
281 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200282 del wopts3! KeyError
283 del bopts3! ValueError
284 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200285 W: 1:0 2:1 3:0 4:1
286 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200287>>> shiftwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100288 g/w/b:0/0/1
289 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200290 p/gopts1! KeyError
291 inv: 3! KeyError
292 gopts1! KeyError
293 p/wopts1! KeyError
294 inv: 3! KeyError
295 wopts1! KeyError
296 wopts2! KeyError
297 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200298 p/bopts1: 8
299 G: 8
300 W: 1:0 2:2 3:8 4:1
301 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200302 del wopts3! KeyError
303 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200304 G: 8
305 W: 1:0 2:2 3:8 4:1
306 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200307>>> omnifunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100308 g/w/b:0/0/1
309 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200310 p/gopts1! KeyError
311 inv: 1! KeyError
312 gopts1! KeyError
313 p/wopts1! KeyError
314 inv: 1! KeyError
315 wopts1! KeyError
316 wopts2! KeyError
317 wopts3! KeyError
318 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200319 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200320 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200321 W: 1:'A' 2:'B' 3:'' 4:'C'
322 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200323 del wopts3! KeyError
324 del bopts3! ValueError
325 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200326 W: 1:'A' 2:'B' 3:'' 4:'C'
327 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200328>>> preserveindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100329 g/w/b:0/0/1
330 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200331 p/gopts1! KeyError
332 inv: 2! KeyError
333 gopts1! KeyError
334 p/wopts1! KeyError
335 inv: 2! KeyError
336 wopts1! KeyError
337 wopts2! KeyError
338 wopts3! KeyError
339 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200340 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200341 W: 1:0 2:1 3:0 4:1
342 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200343 del wopts3! KeyError
344 del bopts3! ValueError
345 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200346 W: 1:0 2:1 3:0 4:1
347 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200348>>> path
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100349 g/w/b:1/0/1
350 g/w/b (in):1/0/1
Bram Moolenaar04188112013-06-01 20:32:12 +0200351 p/gopts1: b'.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200352 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200353 p/wopts1! KeyError
354 inv: 0! KeyError
355 wopts1! KeyError
356 wopts2! KeyError
357 wopts3! KeyError
358 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200359 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200360 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200361 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
362 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200363 del wopts3! KeyError
364 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200365 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
366 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200367First line
368First line
369def
370First line
371Second line
372Third line
373(7, 2)
374<buffer test87.in><buffer >
375baz
376bar
377Second line
378Third line
379foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003801:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003811:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200382testdir/foo
3835:BufFilePre:5
3845:BufFilePost:5
385testdir/bar
3861:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003871:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200388testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200389valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200390i:<buffer test87.in>
391i2:<buffer test87.in>
392i:<buffer a>
393i3:<buffer test87.in>
3941:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003958:<buffer a>=<buffer a>
3969:<buffer b>=<buffer b>
39710:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003984
399i4:<buffer test87.in>
400i4:<buffer test87.in>
401StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200402Number of tabs: 4
403Current tab pages:
404 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
405 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200406 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200407 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
408 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200409 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200410 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
411 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200412 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
413 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200414 <tabpage 3>(4): 4 windows, current is <window 0>
415 Windows:
416 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
417 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
418 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
419 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
420Number of windows in current tab page: 4
421Current tab page: <tabpage 3>
422Current window: <window 0>: <window 0> is <window 0>
423Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
424ValueError at assigning foreign tab window
425Type error at assigning None to vim.current.window
426Type error at assigning None to vim.current.tabpage
427Type error at assigning None to vim.current.buffer
428Current tab page: <tabpage 2>
429Current window: <window 0>
430Current buffer: <buffer test87.in>
431Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200432w.valid: [True, False]
433t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200434vim.vars:Dictionary:True
435vim.options:Options:True
436vim.bindeval("{}"):Dictionary:True
437vim.bindeval("[]"):List:True
438vim.bindeval("function('tr')"):Function:True
439vim.current.buffer:Buffer:True
440vim.current.range:Range:True
441vim.current.window:Window:True
442vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200443current:__dir__,buffer,line,range,tabpage,window
444buffer:__dir__,append,mark,name,number,options,range,valid,vars
445window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
446tabpage:__dir__,number,valid,vars,window,windows
447range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200448dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200449list:__dir__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200450function:__dir__,softspace
Bram Moolenaard4247472015-11-02 13:28:59 +0100451output:__dir__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200452{}
453{'a': 1}
454{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200455[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200456['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200457function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200458'
459abcdef
460line :
461abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200462abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200463line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200464abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200465['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200466['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200467['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200468[2, 2]
469[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004701
4711
472function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200473b'testdir'
474test87.in
475b'src'
476testdir/test87.in
477b'testdir'
478test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200479> Output
480>> OutputSetattr
481del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200482>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200483sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200484sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
485sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
486<<< Finished
487>>> Testing NumberToLong using sys.stderr.softspace = %s
488sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
489sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
490sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
491<<< Finished
Bram Moolenaard4247472015-11-02 13:28:59 +0100492assert sys.stdout.isatty()==False:NOT FAILED
493assert sys.stdout.seekable()==False:NOT FAILED
494sys.stdout.close():NOT FAILED
495sys.stdout.flush():NOT FAILED
496assert sys.stderr.isatty()==False:NOT FAILED
497assert sys.stderr.seekable()==False:NOT FAILED
498sys.stderr.close():NOT FAILED
499sys.stderr.flush():NOT FAILED
Bram Moolenaarc476e522013-06-23 13:46:40 +0200500sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200501>> OutputWrite
Bram Moolenaard4247472015-11-02 13:28:59 +0100502assert sys.stdout.writable()==True:NOT FAILED
503assert sys.stdout.readable()==False:NOT FAILED
504assert sys.stderr.writable()==True:NOT FAILED
505assert sys.stderr.readable()==False:NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200506sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
507>> OutputWriteLines
508sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200509sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200510>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200511sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
512sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200513<<< Finished
514> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200515>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200516vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200517vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
518vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
519<<< Finished
520vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200521> VimToPython
522> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200523>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200524vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200525vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
526vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
527<<< Finished
528vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200529> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200530>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200531vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200532vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
533vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
534<<< Finished
535vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200536> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200537>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200538vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200539vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
540vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
541<<< Finished
542> VimForeachRTP
543vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
544vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
545vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
546vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
547> import
548import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
549import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200550import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100551> Options
552>> OptionsItem
553vim.options["abcQ"]:(<class 'KeyError'>, KeyError('abcQ',))
554vim.options[""]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
555>>> Testing StringToChars using vim.options[%s]
556vim.options[1]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
557vim.options[b"\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
558vim.options["\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
559<<< Finished
560>> OptionsContains
561>>> Testing StringToChars using %s in vim.options
5621 in vim.options:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
563b"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
564"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
565<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200566> Dictionary
567>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200568vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200569>> DictionarySetattr
570del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200571d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200572vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200573d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
574d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200575>> _DictionaryItem
576d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
577>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200578d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200579d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200580d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
581<<< Finished
582d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200583dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100584>> DictionaryContains
585"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
5860 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200587>> DictionaryIterNext
588for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
589>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200590dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200591>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200592d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200593d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200594d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
595<<< Finished
596>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200597d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200598d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200599d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
600<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200601>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
602d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
603d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
604d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200605<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200606>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
607d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
608d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
609d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200610<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200611>>> Testing *Iter* using d["a"] = {"abcF" : %s}
612d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200613d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200614<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200615>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
616d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
617d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
618d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200619d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
620d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
621d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200622<<< Finished
623>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200624d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200625d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200626d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
627<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200628>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
629d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
630d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
631d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200632<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200633>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
634d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
635d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
636d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200637<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200638>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
639d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200640d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200641<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200642>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
643d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
644d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
645d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200646d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
647d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
648d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200649<<< Finished
650>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200651d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200652d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200653<<< Finished
654>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200655d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200656d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200657d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200658d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
659d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
660d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200661<<< Finished
662>> DictionaryUpdate
663>>> kwargs
664>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200665d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
666d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100667d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200668>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200669d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
670d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200671<<< Finished
672>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200673d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200674d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
676<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200677>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
678d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
679d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
680d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200681<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200682>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
683d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
684d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
685d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200686<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200687>>> Testing *Iter* using d.update({"abcF" : %s})
688d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200689d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200690<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200691>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
692d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
693d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
694d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200695d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
696d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
697d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200698<<< Finished
699>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200700d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200701d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200702d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
703<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200704>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
705d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
706d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
707d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200708<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200709>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
710d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
711d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
712d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200713<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200714>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
715d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200716d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200717<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200718>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
719d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
720d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
721d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200722d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
723d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
724d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200725<<< Finished
726>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200727d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
728d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200729<<< Finished
730>>> Testing ConvertFromPyObject using d.update(%s)
731d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200732d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200733d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200734d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
735d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
736d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200737<<< Finished
738>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200739d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200740d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200741d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
742<<< Finished
743>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200744d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200745d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
747<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200748>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
749d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
750d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
751d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200752<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200753>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
754d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
755d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
756d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200757<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200758>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
759d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200760d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200761<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200762>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
763d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
764d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
765d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200766d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
767d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
768d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200769<<< Finished
770>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200771d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200772d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200773d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
774<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200775>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
776d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
777d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
778d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200779<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200780>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
781d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
782d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
783d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200784<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200785>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
786d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200787d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200788<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200789>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
790d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
791d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
792d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200793d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
794d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
795d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200796<<< Finished
797>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200798d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200799d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200800<<< Finished
801>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200802d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200803d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200804d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200805d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
806d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
807d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808<<< Finished
809>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200810d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200811>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200812d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200813> List
814>> ListConstructor
815vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
816vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
817>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200818vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
819vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200820<<< Finished
821>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200822vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200823vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200824vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
825<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200826>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
827vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
828vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
829vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200830<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200831>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
832vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
833vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
834vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200835<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200836>>> Testing *Iter* using vim.List([{"abcF" : %s}])
837vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200838vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200839<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200840>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
841vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
842vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
843vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200844vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
845vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
846vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200847<<< Finished
848>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200849vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200850vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200851vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
852<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200853>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
854vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
855vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
856vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200857<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200858>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
859vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
860vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
861vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200862<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200863>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
864vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200865vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200866<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200867>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
868vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
869vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
870vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200871vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
872vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
873vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200874<<< Finished
875>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200876vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200877vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200878<<< Finished
879>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200880vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200881vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200882vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200883vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
884vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
885vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200886<<< Finished
887>> ListItem
888l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
889>> ListAssItem
890ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
891l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
892>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200893ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200894>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200895l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
896l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100898nel[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 +0100899(b'a', b'b', b'c', b'O')
900nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
901(b'a', b'b', b'c', b'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100902nel[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 +0100903(b'a', b'b', b'c', b'O')
904nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
905(b'a', b'b', b'c', b'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200906>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200907l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200908l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200909l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
910<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200911>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
912l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
913l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
914l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200915<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200916>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
917l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
918l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
919l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200920<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200921>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
922l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200923l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200924<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200925>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
926l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
927l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
928l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200929l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
930l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
931l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200932<<< Finished
933>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200934l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200935l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200936l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
937<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200938>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
939l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
940l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
941l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200942<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200943>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
944l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
945l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
946l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200947<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200948>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
949l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200950l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200951<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200952>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
953l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
954l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
955l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200956l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
957l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
958l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200959<<< Finished
960>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200961l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200962l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200963<<< Finished
964>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200965l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200966l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200967l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200968l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
969l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
970l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200971<<< Finished
972>> ListConcatInPlace
973>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200974l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
975l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200976<<< Finished
977>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200978l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200979l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200980l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
981<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200982>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
983l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
984l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
985l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200986<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200987>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
988l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
989l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
990l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200991<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200992>>> Testing *Iter* using l.extend([{"abcF" : %s}])
993l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200994l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200995<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200996>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
997l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
998l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
999l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001000l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1001l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1002l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001003<<< Finished
1004>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001005l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001006l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001007l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1008<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001009>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
1010l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1011l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1012l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001013<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001014>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1015l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1016l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1017l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001018<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001019>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1020l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001021l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001022<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001023>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1024l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1025l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1026l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001027l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1028l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1029l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001030<<< Finished
1031>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001032l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001033l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001034<<< Finished
1035>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001036l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001037l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001038l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001039l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1040l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1041l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001042<<< Finished
1043>> ListSetattr
1044del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001045l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001046l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001047> Function
1048>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001049vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
1050vim.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 +02001051vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052>> FunctionCall
1053>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001054f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001055f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001056f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1057<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001058>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1059f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1060f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1061f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001062<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001063>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1064f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1065f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1066f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001067<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001068>>> Testing *Iter* using f({"abcF" : %s})
1069f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001070f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001071<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001072>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1073f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1074f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1075f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001076f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1077f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1078f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001079<<< Finished
1080>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001081f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001082f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001083f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1084<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001085>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1086f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1087f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1088f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001089<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001090>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1091f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1092f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1093f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001094<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001095>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1096f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001097f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001098<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001099>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1100f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1101f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1102f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001103f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1104f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1105f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001106<<< Finished
1107>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001108f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001109f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001110<<< Finished
1111>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001112f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001113f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001114f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001115f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1116f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1117f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001118<<< Finished
1119>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001120fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001121fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001122fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1123<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001124>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1125fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1126fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1127fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001128<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001129>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1130fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1131fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1132fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001133<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001134>>> Testing *Iter* using fd(self={"abcF" : %s})
1135fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001136fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001137<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001138>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1139fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1140fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1141fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001142fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1143fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1144fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001145<<< Finished
1146>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001147fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001148fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001149fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1150<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001151>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1152fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1153fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1154fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001155<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001156>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1157fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1158fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1159fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001160<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001161>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1162fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001163fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001164<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001165>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1166fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1167fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1168fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001169fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1170fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1171fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001172<<< Finished
1173>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001174fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1175fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001176<<< Finished
1177>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001178fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001179fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001180fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001181fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1182fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1183fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001184<<< Finished
1185>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001186fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001187<<< Finished
1188> TabPage
1189>> TabPageAttr
1190vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1191> TabList
1192>> TabListItem
1193vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1194> Window
1195>> WindowAttr
1196vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1197>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001198vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001199vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001200vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001201>>> Testing NumberToLong using vim.current.window.height = %s
1202vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1203vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1204vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1205<<< Finished
1206>>> Testing NumberToLong using vim.current.window.width = %s
1207vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1208vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1209vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1210<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001211vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1212> WinList
1213>> WinListItem
1214vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1215> Buffer
1216>> StringToLine (indirect)
1217vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001218vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001219>> SetBufferLine (indirect)
1220vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001221>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001222vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1223vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1224>> InsertBufferLines (indirect)
1225vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1226vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1227vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1228>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001229vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001230>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001231vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001232>> BufferAttr
1233vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1234>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001235vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001236vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1237>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001238vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001239vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001240vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1241>> BufferRange
1242vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1243> BufMap
1244>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001245vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001246>>> Testing NumberToLong using vim.buffers[%s]
1247vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1248vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001249vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
1250vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001251<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001252> Current
1253>> CurrentGetattr
1254vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1255>> CurrentSetattr
1256vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001257vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1258vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1259vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001260vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001261['.']
1262'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012633,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001264before
1265after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001266pythonx/topmodule/__init__.py
1267pythonx/topmodule/submodule/__init__.py
1268pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001269vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001270Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1271vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1272vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1273vim.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 +01001274vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001275vim.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 +01001276Caught KeyboardInterrupt
1277Running :put
1278No exception
1279