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