blob: 7771733937aafdeb235465b6f2566980191ef41c [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020071
8[b'-1', b'0', b'1', b'b', b'f']
9[-1, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >, b'asd']
10[(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >), (b'f', <vim.Function '1'>)]
Bram Moolenaardb913952012-06-29 12:54:53 +020011'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020012'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020013'1' : 'asd'
14'b' : [1, 2, function('strlen')]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020015'f' : function('1')
Bram Moolenaardb913952012-06-29 12:54:53 +020016[0, function('strlen')]
17[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020018[1, 2, function('strlen')]
19[1, 2, function('strlen')]
201
21'asd'
222
23True
24False
25True
26False
27[b'0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029(b'0', -1)
Bram Moolenaara9922d62013-05-30 13:01:18 +020030None
31[]
Bram Moolenaardb913952012-06-29 12:54:53 +020032[0, 1, 2, 3]
33[0, 1, 2, 3]
34[0, 1, 3]
35[0, 1]
36[0, 1]
37[0, 1]
38[0, 1, 2, 3]
39[0, 1, 2, 3]
40[0, 2, 3]
41[2, 3]
42[2, 3]
43[2, 3]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010044[1, 3]
45[0, 2]
46[0, 1, 2, 3]
Bram Moolenaardb913952012-06-29 12:54:53 +020047['a', 0, 1, 2, 3]
48[0, 'b', 2, 3]
49[0, 1, 'c']
50[0, 1, 2, 3, 'd']
51[0, 1, 2, 'e', 3]
52['f', 2, 3]
53[0, 1, 'g', 2, 3]
54['h']
Bram Moolenaar063a46b2014-01-14 16:36:51 +010055[0, 1, 10, 3, 20, 5, 6, 7]
56[0, 1, 2, 3, 20, 5, 10, 7]
57[0, 1, 2, 3, 4, 5, 6, 7]
58[0, 1, 2, 3, 4, 5, 6, 7]
59[0, 1, 2, 3, 4, 5, 6, 7]
Bram Moolenaardb913952012-06-29 12:54:53 +020060[0, 1, 2, 3]
61[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
62[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
63[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
Bram Moolenaar9fee7d42013-11-28 17:04:43 +010064l[1](1, 2, 3):(<class 'vim.error'>, error('Vim:E725: Calling dict function without Dictionary: DictNew',))
65f(1, 2, 3):(<class 'vim.error'>, error('Vim:E117: Unknown function: New',))
Bram Moolenaardb913952012-06-29 12:54:53 +020066[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020067KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020068TypeError
69TypeError
70ValueError
71TypeError
72TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020073KeyError
74KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020075d : locked:0;scope:0
76dl : locked:1;scope:0
77v: : locked:2;scope:1
78g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020079d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020080dl:{'def': 1}
81l : locked:0
82ll : locked:1
83l:[0]
84ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020085[0, 1, 2]
86['a', 'b']
87['c', 1]
88['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200890.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020090"\0": Vim(let):E859:
91{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010092undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020093vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010094[1]
95[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010096[0, 1, 2, 3]
97[2, 3, 4, 5]
98[0, 1]
99[4, 5]
100[2, 3]
101[]
102[2, 3]
103[]
104[0, 1, 2, 3, 4, 5]
105[0, 1, 2, 3, 4, 5]
106[0, 1, 2, 3, 4, 5]
107[4, 3]
108[0, 2, 4]
109[]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +0200110Abc
111bac
112def
113bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200114jkl
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100115wopts iters equal: 1
116bopts iters equal: 1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200117>>> paste
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100118 g/w/b:1/0/0
119 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200120 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200121 p/wopts1! KeyError
122 inv: 2! KeyError
123 wopts1! KeyError
124 wopts2! KeyError
125 wopts3! KeyError
126 p/bopts1! KeyError
127 inv: 2! KeyError
128 bopts1! KeyError
129 bopts2! KeyError
130 bopts3! KeyError
131 G: 1
132 W: 1:1 2:1 3:1 4:1
133 B: 1:1 2:1 3:1 4:1
134 del wopts3! KeyError
135 del bopts3! KeyError
136 G: 1
137 W: 1:1 2:1 3:1 4:1
138 B: 1:1 2:1 3:1 4:1
139>>> previewheight
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100140 g/w/b:1/0/0
141 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200142 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200143 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200144 p/wopts1! KeyError
145 inv: 'a'! KeyError
146 wopts1! KeyError
147 wopts2! KeyError
148 wopts3! KeyError
149 p/bopts1! KeyError
150 inv: 'a'! KeyError
151 bopts1! KeyError
152 bopts2! KeyError
153 bopts3! KeyError
154 G: 5
155 W: 1:5 2:5 3:5 4:5
156 B: 1:5 2:5 3:5 4:5
157 del wopts3! KeyError
158 del bopts3! KeyError
159 G: 5
160 W: 1:5 2:5 3:5 4:5
161 B: 1:5 2:5 3:5 4:5
162>>> operatorfunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100163 g/w/b:1/0/0
164 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200165 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200166 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200167 p/wopts1! KeyError
168 inv: 2! KeyError
169 wopts1! KeyError
170 wopts2! KeyError
171 wopts3! KeyError
172 p/bopts1! KeyError
173 inv: 2! KeyError
174 bopts1! KeyError
175 bopts2! KeyError
176 bopts3! KeyError
177 G: 'A'
178 W: 1:'A' 2:'A' 3:'A' 4:'A'
179 B: 1:'A' 2:'A' 3:'A' 4:'A'
180 del wopts3! KeyError
181 del bopts3! KeyError
182 G: 'A'
183 W: 1:'A' 2:'A' 3:'A' 4:'A'
184 B: 1:'A' 2:'A' 3:'A' 4:'A'
185>>> number
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100186 g/w/b:0/1/0
187 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200188 p/gopts1! KeyError
189 inv: 0! KeyError
190 gopts1! KeyError
191 p/wopts1: False
192 p/bopts1! KeyError
193 inv: 0! KeyError
194 bopts1! KeyError
195 bopts2! KeyError
196 bopts3! KeyError
197 G: 0
198 W: 1:1 2:1 3:0 4:0
199 B: 1:1 2:1 3:0 4:0
200 del wopts3! ValueError
201 del bopts3! KeyError
202 G: 0
203 W: 1:1 2:1 3:0 4:0
204 B: 1:1 2:1 3:0 4:0
205>>> numberwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100206 g/w/b:0/1/0
207 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200208 p/gopts1! KeyError
209 inv: -100! KeyError
210 gopts1! KeyError
211 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200212 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200213 p/bopts1! KeyError
214 inv: -100! KeyError
215 bopts1! KeyError
216 bopts2! KeyError
217 bopts3! KeyError
218 G: 8
219 W: 1:3 2:5 3:2 4:8
220 B: 1:3 2:5 3:2 4:8
221 del wopts3! ValueError
222 del bopts3! KeyError
223 G: 8
224 W: 1:3 2:5 3:2 4:8
225 B: 1:3 2:5 3:2 4:8
226>>> colorcolumn
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100227 g/w/b:0/1/0
228 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200229 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200230 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200231 gopts1! KeyError
232 p/wopts1: b''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200233 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200234 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200235 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 bopts1! KeyError
237 bopts2! KeyError
238 bopts3! KeyError
239 G: ''
240 W: 1:'+2' 2:'+3' 3:'+1' 4:''
241 B: 1:'+2' 2:'+3' 3:'+1' 4:''
242 del wopts3! ValueError
243 del bopts3! KeyError
244 G: ''
245 W: 1:'+2' 2:'+3' 3:'+1' 4:''
246 B: 1:'+2' 2:'+3' 3:'+1' 4:''
247>>> statusline
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100248 g/w/b:1/1/0
249 g/w/b (in):1/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200250 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200251 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200253 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200254 p/bopts1! KeyError
255 inv: 0! KeyError
256 bopts1! KeyError
257 bopts2! KeyError
258 bopts3! KeyError
259 G: '1'
260 W: 1:'2' 2:'4' 3:'1' 4:'1'
261 B: 1:'2' 2:'4' 3:'1' 4:'1'
262 del bopts3! KeyError
263 G: '1'
264 W: 1:'2' 2:'1' 3:'1' 4:'1'
265 B: 1:'2' 2:'1' 3:'1' 4:'1'
266>>> autoindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100267 g/w/b:0/0/1
268 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200269 p/gopts1! KeyError
270 inv: 2! KeyError
271 gopts1! KeyError
272 p/wopts1! KeyError
273 inv: 2! KeyError
274 wopts1! KeyError
275 wopts2! KeyError
276 wopts3! KeyError
277 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200278 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200279 W: 1:0 2:1 3:0 4:1
280 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281 del wopts3! KeyError
282 del bopts3! ValueError
283 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200284 W: 1:0 2:1 3:0 4:1
285 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200286>>> shiftwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100287 g/w/b:0/0/1
288 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 p/gopts1! KeyError
290 inv: 3! KeyError
291 gopts1! KeyError
292 p/wopts1! KeyError
293 inv: 3! KeyError
294 wopts1! KeyError
295 wopts2! KeyError
296 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200297 p/bopts1: 8
298 G: 8
299 W: 1:0 2:2 3:8 4:1
300 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200301 del wopts3! KeyError
302 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200303 G: 8
304 W: 1:0 2:2 3:8 4:1
305 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200306>>> omnifunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100307 g/w/b:0/0/1
308 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200309 p/gopts1! KeyError
310 inv: 1! KeyError
311 gopts1! KeyError
312 p/wopts1! KeyError
313 inv: 1! KeyError
314 wopts1! KeyError
315 wopts2! KeyError
316 wopts3! KeyError
317 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200318 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200319 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200320 W: 1:'A' 2:'B' 3:'' 4:'C'
321 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 del wopts3! KeyError
323 del bopts3! ValueError
324 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200325 W: 1:'A' 2:'B' 3:'' 4:'C'
326 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200327>>> preserveindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100328 g/w/b:0/0/1
329 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200330 p/gopts1! KeyError
331 inv: 2! KeyError
332 gopts1! KeyError
333 p/wopts1! KeyError
334 inv: 2! KeyError
335 wopts1! KeyError
336 wopts2! KeyError
337 wopts3! KeyError
338 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200339 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200340 W: 1:0 2:1 3:0 4:1
341 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200342 del wopts3! KeyError
343 del bopts3! ValueError
344 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200345 W: 1:0 2:1 3:0 4:1
346 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200347>>> path
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100348 g/w/b:1/0/1
349 g/w/b (in):1/0/1
Bram Moolenaar04188112013-06-01 20:32:12 +0200350 p/gopts1: b'.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200351 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200352 p/wopts1! KeyError
353 inv: 0! KeyError
354 wopts1! KeyError
355 wopts2! KeyError
356 wopts3! KeyError
357 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200358 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200359 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200360 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
361 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200362 del wopts3! KeyError
363 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200364 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
365 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200366First line
367First line
368def
369First line
370Second line
371Third line
372(7, 2)
373<buffer test87.in><buffer >
374baz
375bar
376Second line
377Third line
378foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003791:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003801:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200381testdir/foo
3825:BufFilePre:5
3835:BufFilePost:5
384testdir/bar
3851:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003861:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200387testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200388valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200389i:<buffer test87.in>
390i2:<buffer test87.in>
391i:<buffer a>
392i3:<buffer test87.in>
3931:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003948:<buffer a>=<buffer a>
3959:<buffer b>=<buffer b>
39610:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003974
398i4:<buffer test87.in>
399i4:<buffer test87.in>
400StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200401Number of tabs: 4
402Current tab pages:
403 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
404 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200405 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200406 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
407 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200408 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200409 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
410 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200411 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
412 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200413 <tabpage 3>(4): 4 windows, current is <window 0>
414 Windows:
415 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
416 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
417 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
418 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
419Number of windows in current tab page: 4
420Current tab page: <tabpage 3>
421Current window: <window 0>: <window 0> is <window 0>
422Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
423ValueError at assigning foreign tab window
424Type error at assigning None to vim.current.window
425Type error at assigning None to vim.current.tabpage
426Type error at assigning None to vim.current.buffer
427Current tab page: <tabpage 2>
428Current window: <window 0>
429Current buffer: <buffer test87.in>
430Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200431w.valid: [True, False]
432t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200433vim.vars:Dictionary:True
434vim.options:Options:True
435vim.bindeval("{}"):Dictionary:True
436vim.bindeval("[]"):List:True
437vim.bindeval("function('tr')"):Function:True
438vim.current.buffer:Buffer:True
439vim.current.range:Range:True
440vim.current.window:Window:True
441vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200442current:__dir__,buffer,line,range,tabpage,window
443buffer:__dir__,append,mark,name,number,options,range,valid,vars
444window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
445tabpage:__dir__,number,valid,vars,window,windows
446range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200447dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200448list:__dir__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200449function:__dir__,softspace
Bram Moolenaard4247472015-11-02 13:28:59 +0100450output:__dir__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200451{}
452{'a': 1}
453{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200454[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200455['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200456function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200457'
458abcdef
459line :
460abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200461abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200462line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200463abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200464['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200465['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200466['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200467[2, 2]
468[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004691
4701
471function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200472b'testdir'
473test87.in
474b'src'
475testdir/test87.in
476b'testdir'
477test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200478> Output
479>> OutputSetattr
480del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200481>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200482sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200483sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
484sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
485<<< Finished
486>>> Testing NumberToLong using sys.stderr.softspace = %s
487sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
488sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
489sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
490<<< Finished
Bram Moolenaard4247472015-11-02 13:28:59 +0100491assert sys.stdout.isatty()==False:NOT FAILED
492assert sys.stdout.seekable()==False:NOT FAILED
493sys.stdout.close():NOT FAILED
494sys.stdout.flush():NOT FAILED
495assert sys.stderr.isatty()==False:NOT FAILED
496assert sys.stderr.seekable()==False:NOT FAILED
497sys.stderr.close():NOT FAILED
498sys.stderr.flush():NOT FAILED
Bram Moolenaarc476e522013-06-23 13:46:40 +0200499sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200500>> OutputWrite
Bram Moolenaard4247472015-11-02 13:28:59 +0100501assert sys.stdout.writable()==True:NOT FAILED
502assert sys.stdout.readable()==False:NOT FAILED
503assert sys.stderr.writable()==True:NOT FAILED
504assert sys.stderr.readable()==False:NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200505sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
506>> OutputWriteLines
507sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200508sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200509>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200510sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
511sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512<<< Finished
513> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200514>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200515vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200516vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
517vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
518<<< Finished
519vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200520> VimToPython
521> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200522>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200523vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200524vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
525vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
526<<< Finished
527vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200528> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200529>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200530vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200531vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
532vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
533<<< Finished
534vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200536>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200537vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200538vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
539vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
540<<< Finished
541> VimForeachRTP
542vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
543vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
544vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
545vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
546> import
547import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
548import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200549import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100550> Options
551>> OptionsItem
552vim.options["abcQ"]:(<class 'KeyError'>, KeyError('abcQ',))
553vim.options[""]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
554>>> Testing StringToChars using vim.options[%s]
555vim.options[1]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
556vim.options[b"\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
557vim.options["\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
558<<< Finished
559>> OptionsContains
560>>> Testing StringToChars using %s in vim.options
5611 in vim.options:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
562b"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
563"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
564<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200565> Dictionary
566>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200567vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200568>> DictionarySetattr
569del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200570d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200571vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200572d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
573d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574>> _DictionaryItem
575d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
576>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200577d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200578d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200579d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
580<<< Finished
581d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200582dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100583>> DictionaryContains
584"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
5850 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200586>> DictionaryIterNext
587for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
588>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200589dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200590>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200591d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200592d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200593d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
594<<< Finished
595>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200596d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200597d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200598d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
599<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200600>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
601d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
602d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
603d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200604<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200605>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
606d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
607d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
608d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200610>>> Testing *Iter* using d["a"] = {"abcF" : %s}
611d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200612d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200613<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200614>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
615d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
616d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
617d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200618d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
619d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
620d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200621<<< Finished
622>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200623d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200624d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200625d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
626<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200627>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
628d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
629d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
630d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200631<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200632>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
633d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
634d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
635d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200637>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
638d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200639d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200640<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200641>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
642d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
643d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
644d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200645d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
646d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
647d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200650d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200651d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200652<<< Finished
653>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200654d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200655d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200656d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200657d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
658d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
659d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200660<<< Finished
661>> DictionaryUpdate
662>>> kwargs
663>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200664d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
665d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100666d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200667>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200668d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
669d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200670<<< Finished
671>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200672d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200673d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200674d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
675<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200676>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
677d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
678d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
679d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200680<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200681>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
682d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
683d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
684d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200686>>> Testing *Iter* using d.update({"abcF" : %s})
687d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200688d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200689<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200690>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
691d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
692d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
693d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200694d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
695d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
696d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200697<<< Finished
698>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200699d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200700d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200701d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
702<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200703>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
704d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
705d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
706d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200707<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200708>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
709d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
710d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
711d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200712<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200713>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
714d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200715d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200717>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
718d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
719d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
720d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200721d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
722d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
723d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724<<< Finished
725>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200726d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
727d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200728<<< Finished
729>>> Testing ConvertFromPyObject using d.update(%s)
730d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200731d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200732d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200733d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
734d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
735d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200736<<< Finished
737>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200738d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200739d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200740d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
741<<< Finished
742>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200743d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200744d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200745d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
746<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200747>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
748d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
749d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
750d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200751<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200752>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
753d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
754d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
755d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200757>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
758d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200759d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200760<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200761>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
762d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
763d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
764d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200765d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
766d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
767d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200768<<< Finished
769>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200770d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200771d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200772d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
773<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200774>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
775d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
776d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
777d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200778<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200779>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
780d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
781d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
782d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200783<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200784>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
785d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200786d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200788>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
789d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
790d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
791d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200792d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
793d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
794d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795<<< Finished
796>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200797d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200798d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200799<<< Finished
800>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200801d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200802d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200803d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200804d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
805d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
806d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200807<<< Finished
808>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200809d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200810>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200811d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812> List
813>> ListConstructor
814vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
815vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
816>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200817vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
818vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200819<<< Finished
820>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200821vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200822vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200823vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
824<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200825>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
826vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
827vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
828vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200829<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200830>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
831vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
832vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
833vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200835>>> Testing *Iter* using vim.List([{"abcF" : %s}])
836vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200837vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200838<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200839>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
840vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
841vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
842vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200843vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
844vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
845vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200846<<< Finished
847>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200848vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200849vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200850vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
851<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200852>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
853vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
854vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
855vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200856<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200857>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
858vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
859vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
860vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200861<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200862>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
863vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200864vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200865<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200866>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
867vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
868vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
869vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200870vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
871vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
872vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873<<< Finished
874>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200875vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200876vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200877<<< Finished
878>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200879vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200880vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200881vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200882vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
883vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
884vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200885<<< Finished
886>> ListItem
887l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
888>> ListAssItem
889ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
890l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
891>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200892ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200894l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
895l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200896<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100897nel[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 +0100898(b'a', b'b', b'c', b'O')
899nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
900(b'a', b'b', b'c', b'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100901nel[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 +0100902(b'a', b'b', b'c', b'O')
903nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
904(b'a', b'b', b'c', b'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200906l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200907l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200908l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
909<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200910>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
911l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
912l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
913l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200914<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200915>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
916l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
917l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
918l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200920>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
921l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200922l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200923<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200924>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
925l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
926l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
927l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200928l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
929l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
930l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200931<<< Finished
932>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200933l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200934l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200935l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
936<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200937>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
938l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
939l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
940l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200941<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200942>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
943l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
944l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
945l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200947>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
948l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200949l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200950<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200951>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
952l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
953l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
954l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200955l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
956l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
957l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200958<<< Finished
959>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200960l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200961l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200962<<< Finished
963>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200964l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200965l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200966l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200967l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
968l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
969l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200970<<< Finished
971>> ListConcatInPlace
972>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200973l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
974l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200975<<< Finished
976>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200977l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200978l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200979l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
980<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200981>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
982l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
983l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
984l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200985<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200986>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
987l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
988l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
989l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200990<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200991>>> Testing *Iter* using l.extend([{"abcF" : %s}])
992l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200993l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200995>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
996l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
997l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
998l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200999l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1000l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1001l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001002<<< Finished
1003>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001004l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001005l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001006l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1007<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001008>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
1009l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1010l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1011l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001012<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001013>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1014l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1015l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1016l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001018>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1019l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001022>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1023l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1024l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1025l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1027l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1028l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001031l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001032l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033<<< Finished
1034>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001035l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001036l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001037l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001038l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1039l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1040l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001041<<< Finished
1042>> ListSetattr
1043del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001044l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001045l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001046> Function
1047>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001048vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
1049vim.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 +02001050vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +02001051>> FunctionCall
1052>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001053f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001054f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001055f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1056<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001057>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1058f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1059f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1060f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001061<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001062>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1063f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1064f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1065f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001066<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001067>>> Testing *Iter* using f({"abcF" : %s})
1068f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001069f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001070<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001071>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1072f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1073f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1074f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001075f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1076f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1077f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001078<<< Finished
1079>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001080f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001081f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001082f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1083<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001084>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1085f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1086f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1087f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001088<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001089>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1090f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1091f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1092f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001093<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001094>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1095f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001096f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001097<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001098>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1099f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1100f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1101f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001102f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1103f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1104f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001105<<< Finished
1106>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001107f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001108f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001109<<< Finished
1110>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001111f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001112f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001113f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001114f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1115f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1116f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001117<<< Finished
1118>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001119fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001120fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001121fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1122<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001123>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1124fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1125fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1126fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001127<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001128>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1129fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1130fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1131fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001132<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001133>>> Testing *Iter* using fd(self={"abcF" : %s})
1134fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001135fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001136<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001137>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1138fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1139fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1140fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001141fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1142fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1143fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001144<<< Finished
1145>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001146fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001147fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001148fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1149<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001150>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1151fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1152fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1153fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001154<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001155>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1156fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1157fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1158fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001159<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001160>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1161fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001162fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001163<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001164>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1165fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1166fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1167fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001168fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1169fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1170fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001171<<< Finished
1172>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001173fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1174fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001175<<< Finished
1176>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001177fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001178fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001179fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001180fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1181fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1182fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001183<<< Finished
1184>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001185fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001186<<< Finished
1187> TabPage
1188>> TabPageAttr
1189vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1190> TabList
1191>> TabListItem
1192vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1193> Window
1194>> WindowAttr
1195vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1196>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001197vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001198vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001199vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001200>>> Testing NumberToLong using vim.current.window.height = %s
1201vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1202vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1203vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1204<<< Finished
1205>>> Testing NumberToLong using vim.current.window.width = %s
1206vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1207vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1208vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1209<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001210vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1211> WinList
1212>> WinListItem
1213vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1214> Buffer
1215>> StringToLine (indirect)
1216vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001217vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001218>> SetBufferLine (indirect)
1219vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001220>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001221vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1222vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1223>> InsertBufferLines (indirect)
1224vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1225vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1226vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1227>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001228vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001229>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001230vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001231>> BufferAttr
1232vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1233>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001234vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001235vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1236>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001237vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001238vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001239vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1240>> BufferRange
1241vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1242> BufMap
1243>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001244vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001245>>> Testing NumberToLong using vim.buffers[%s]
1246vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1247vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001248vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
1249vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001250<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001251> Current
1252>> CurrentGetattr
1253vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1254>> CurrentSetattr
1255vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001256vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1257vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1258vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001259vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001260['.']
1261'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012623,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001263before
1264after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001265pythonx/topmodule/__init__.py
1266pythonx/topmodule/submodule/__init__.py
1267pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001268vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001269Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1270vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1271vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1272vim.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 +01001273vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001274vim.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 +01001275Caught KeyboardInterrupt
1276Running :put
1277No exception
1278