blob: 25c0b510322b824b57c5b03f3acf63b22b165e34 [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 Moolenaar8110a092016-04-14 15:56:09 +020060l[2] threw vim.error: error:('list is locked',)
Bram Moolenaardb913952012-06-29 12:54:53 +020061[0, 1, 2, 3]
62[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
63[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
64[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
Bram Moolenaar9fee7d42013-11-28 17:04:43 +010065l[1](1, 2, 3):(<class 'vim.error'>, error('Vim:E725: Calling dict function without Dictionary: DictNew',))
66f(1, 2, 3):(<class 'vim.error'>, error('Vim:E117: Unknown function: New',))
Bram Moolenaardb913952012-06-29 12:54:53 +020067[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020068KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020069TypeError
70TypeError
71ValueError
72TypeError
73TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020074KeyError
75KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020076d : locked:0;scope:0
77dl : locked:1;scope:0
78v: : locked:2;scope:1
79g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020080d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020081dl:{'def': 1}
82l : locked:0
83ll : locked:1
84l:[0]
85ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020086[0, 1, 2]
87['a', 'b']
88['c', 1]
89['d', ['e']]
Bram Moolenaar77324fc2016-01-17 22:37:03 +010090py3eval("None") = 0
Bram Moolenaardb913952012-06-29 12:54:53 +0200910.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020092"\0": Vim(let):E859:
93{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010094undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020095vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010096[1]
97[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010098[0, 1, 2, 3]
99[2, 3, 4, 5]
100[0, 1]
101[4, 5]
102[2, 3]
103[]
104[2, 3]
105[]
106[0, 1, 2, 3, 4, 5]
107[0, 1, 2, 3, 4, 5]
108[0, 1, 2, 3, 4, 5]
109[4, 3]
110[0, 2, 4]
111[]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +0200112Abc
113bac
114def
115bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200116jkl
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100117wopts iters equal: 1
118bopts iters equal: 1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200119>>> paste
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100120 g/w/b:1/0/0
121 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200122 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200123 p/wopts1! KeyError
124 inv: 2! KeyError
125 wopts1! KeyError
126 wopts2! KeyError
127 wopts3! KeyError
128 p/bopts1! KeyError
129 inv: 2! KeyError
130 bopts1! KeyError
131 bopts2! KeyError
132 bopts3! KeyError
133 G: 1
134 W: 1:1 2:1 3:1 4:1
135 B: 1:1 2:1 3:1 4:1
136 del wopts3! KeyError
137 del bopts3! KeyError
138 G: 1
139 W: 1:1 2:1 3:1 4:1
140 B: 1:1 2:1 3:1 4:1
141>>> previewheight
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100142 g/w/b:1/0/0
143 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200144 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200145 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200146 p/wopts1! KeyError
147 inv: 'a'! KeyError
148 wopts1! KeyError
149 wopts2! KeyError
150 wopts3! KeyError
151 p/bopts1! KeyError
152 inv: 'a'! KeyError
153 bopts1! KeyError
154 bopts2! KeyError
155 bopts3! KeyError
156 G: 5
157 W: 1:5 2:5 3:5 4:5
158 B: 1:5 2:5 3:5 4:5
159 del wopts3! KeyError
160 del bopts3! KeyError
161 G: 5
162 W: 1:5 2:5 3:5 4:5
163 B: 1:5 2:5 3:5 4:5
164>>> operatorfunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100165 g/w/b:1/0/0
166 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200167 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200168 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200169 p/wopts1! KeyError
170 inv: 2! KeyError
171 wopts1! KeyError
172 wopts2! KeyError
173 wopts3! KeyError
174 p/bopts1! KeyError
175 inv: 2! KeyError
176 bopts1! KeyError
177 bopts2! KeyError
178 bopts3! KeyError
179 G: 'A'
180 W: 1:'A' 2:'A' 3:'A' 4:'A'
181 B: 1:'A' 2:'A' 3:'A' 4:'A'
182 del wopts3! KeyError
183 del bopts3! KeyError
184 G: 'A'
185 W: 1:'A' 2:'A' 3:'A' 4:'A'
186 B: 1:'A' 2:'A' 3:'A' 4:'A'
187>>> number
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100188 g/w/b:0/1/0
189 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200190 p/gopts1! KeyError
191 inv: 0! KeyError
192 gopts1! KeyError
193 p/wopts1: False
194 p/bopts1! KeyError
195 inv: 0! KeyError
196 bopts1! KeyError
197 bopts2! KeyError
198 bopts3! KeyError
199 G: 0
200 W: 1:1 2:1 3:0 4:0
201 B: 1:1 2:1 3:0 4:0
202 del wopts3! ValueError
203 del bopts3! KeyError
204 G: 0
205 W: 1:1 2:1 3:0 4:0
206 B: 1:1 2:1 3:0 4:0
207>>> numberwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100208 g/w/b:0/1/0
209 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200210 p/gopts1! KeyError
211 inv: -100! KeyError
212 gopts1! KeyError
213 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200214 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200215 p/bopts1! KeyError
216 inv: -100! KeyError
217 bopts1! KeyError
218 bopts2! KeyError
219 bopts3! KeyError
220 G: 8
221 W: 1:3 2:5 3:2 4:8
222 B: 1:3 2:5 3:2 4:8
223 del wopts3! ValueError
224 del bopts3! KeyError
225 G: 8
226 W: 1:3 2:5 3:2 4:8
227 B: 1:3 2:5 3:2 4:8
228>>> colorcolumn
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100229 g/w/b:0/1/0
230 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200231 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200232 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200233 gopts1! KeyError
234 p/wopts1: b''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200235 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200237 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200238 bopts1! KeyError
239 bopts2! KeyError
240 bopts3! KeyError
241 G: ''
242 W: 1:'+2' 2:'+3' 3:'+1' 4:''
243 B: 1:'+2' 2:'+3' 3:'+1' 4:''
244 del wopts3! ValueError
245 del bopts3! KeyError
246 G: ''
247 W: 1:'+2' 2:'+3' 3:'+1' 4:''
248 B: 1:'+2' 2:'+3' 3:'+1' 4:''
249>>> statusline
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100250 g/w/b:1/1/0
251 g/w/b (in):1/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200253 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200254 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200255 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200256 p/bopts1! KeyError
257 inv: 0! KeyError
258 bopts1! KeyError
259 bopts2! KeyError
260 bopts3! KeyError
261 G: '1'
262 W: 1:'2' 2:'4' 3:'1' 4:'1'
263 B: 1:'2' 2:'4' 3:'1' 4:'1'
264 del bopts3! KeyError
265 G: '1'
266 W: 1:'2' 2:'1' 3:'1' 4:'1'
267 B: 1:'2' 2:'1' 3:'1' 4:'1'
268>>> autoindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100269 g/w/b:0/0/1
270 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200271 p/gopts1! KeyError
272 inv: 2! KeyError
273 gopts1! KeyError
274 p/wopts1! KeyError
275 inv: 2! KeyError
276 wopts1! KeyError
277 wopts2! KeyError
278 wopts3! KeyError
279 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200280 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200281 W: 1:0 2:1 3:0 4:1
282 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200283 del wopts3! KeyError
284 del bopts3! ValueError
285 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200286 W: 1:0 2:1 3:0 4:1
287 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200288>>> shiftwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100289 g/w/b:0/0/1
290 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200291 p/gopts1! KeyError
292 inv: 3! KeyError
293 gopts1! KeyError
294 p/wopts1! KeyError
295 inv: 3! KeyError
296 wopts1! KeyError
297 wopts2! KeyError
298 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200299 p/bopts1: 8
300 G: 8
301 W: 1:0 2:2 3:8 4:1
302 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200303 del wopts3! KeyError
304 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200305 G: 8
306 W: 1:0 2:2 3:8 4:1
307 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200308>>> omnifunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100309 g/w/b:0/0/1
310 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200311 p/gopts1! KeyError
312 inv: 1! KeyError
313 gopts1! KeyError
314 p/wopts1! KeyError
315 inv: 1! KeyError
316 wopts1! KeyError
317 wopts2! KeyError
318 wopts3! KeyError
319 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200320 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200321 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200322 W: 1:'A' 2:'B' 3:'' 4:'C'
323 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200324 del wopts3! KeyError
325 del bopts3! ValueError
326 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200327 W: 1:'A' 2:'B' 3:'' 4:'C'
328 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200329>>> preserveindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100330 g/w/b:0/0/1
331 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200332 p/gopts1! KeyError
333 inv: 2! KeyError
334 gopts1! KeyError
335 p/wopts1! KeyError
336 inv: 2! KeyError
337 wopts1! KeyError
338 wopts2! KeyError
339 wopts3! KeyError
340 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200341 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200342 W: 1:0 2:1 3:0 4:1
343 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200344 del wopts3! KeyError
345 del bopts3! ValueError
346 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200347 W: 1:0 2:1 3:0 4:1
348 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200349>>> path
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100350 g/w/b:1/0/1
351 g/w/b (in):1/0/1
Bram Moolenaar04188112013-06-01 20:32:12 +0200352 p/gopts1: b'.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200353 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200354 p/wopts1! KeyError
355 inv: 0! KeyError
356 wopts1! KeyError
357 wopts2! KeyError
358 wopts3! KeyError
359 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200360 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200361 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200362 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
363 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200364 del wopts3! KeyError
365 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200366 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
367 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200368First line
369First line
370def
371First line
372Second line
373Third line
374(7, 2)
375<buffer test87.in><buffer >
376baz
377bar
378Second line
379Third line
380foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003811:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003821:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200383testdir/foo
3845:BufFilePre:5
3855:BufFilePost:5
386testdir/bar
3871:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003881:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200389testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200390valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200391i:<buffer test87.in>
392i2:<buffer test87.in>
393i:<buffer a>
394i3:<buffer test87.in>
3951:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003968:<buffer a>=<buffer a>
3979:<buffer b>=<buffer b>
39810:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003994
400i4:<buffer test87.in>
401i4:<buffer test87.in>
402StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200403Number of tabs: 4
404Current tab pages:
405 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
406 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200407 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200408 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
409 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200410 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200411 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
412 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200413 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
414 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200415 <tabpage 3>(4): 4 windows, current is <window 0>
416 Windows:
417 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
418 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
419 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
420 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
421Number of windows in current tab page: 4
422Current tab page: <tabpage 3>
423Current window: <window 0>: <window 0> is <window 0>
424Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
425ValueError at assigning foreign tab window
426Type error at assigning None to vim.current.window
427Type error at assigning None to vim.current.tabpage
428Type error at assigning None to vim.current.buffer
429Current tab page: <tabpage 2>
430Current window: <window 0>
431Current buffer: <buffer test87.in>
432Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200433w.valid: [True, False]
434t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200435vim.vars:Dictionary:True
436vim.options:Options:True
437vim.bindeval("{}"):Dictionary:True
438vim.bindeval("[]"):List:True
439vim.bindeval("function('tr')"):Function:True
440vim.current.buffer:Buffer:True
441vim.current.range:Range:True
442vim.current.window:Window:True
443vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200444current:__dir__,buffer,line,range,tabpage,window
445buffer:__dir__,append,mark,name,number,options,range,valid,vars
446window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
447tabpage:__dir__,number,valid,vars,window,windows
448range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200449dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200450list:__dir__,extend,locked
Bram Moolenaar8110a092016-04-14 15:56:09 +0200451function:__dir__,args,self,softspace
Bram Moolenaard4247472015-11-02 13:28:59 +0100452output:__dir__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200453{}
454{'a': 1}
455{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200456[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200457['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200458function('tr')
Bram Moolenaar8110a092016-04-14 15:56:09 +0200459function('tr', [123, 3, 4])
460function('tr')
461function('tr', {})
462function('tr', [123, 3, 4], {})
463a: <vim.Function 'Args'>
464pa1: <vim.Function 'Args', args=['abcArgsPA1']>
465pa2: <vim.Function 'Args'>
466pa3: <vim.Function 'Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'}>
467pa4: <vim.Function 'Args', self={'abcSelfPA4': 'abcSelfPA4Val'}>
468sa: <vim.Function 'SelfArgs'>
469psa1: <vim.Function 'SelfArgs', args=['abcArgsPSA1']>
470psa2: <vim.Function 'SelfArgs'>
471psa3: <vim.Function 'SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'}>
472psa4: <vim.Function 'SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'}>
473psar: <vim.Function 'SelfArgs', args=[{'abcArgsPSAr2': [{'rec': function('SelfArgs', [{...}], {...}), 'self': {...}, 'abcSelfPSAr': 'abcSelfPSArVal', 'args': [{...}]}, {...}], 'abcArgsPSAr': 'abcArgsPSArVal'}], self={'rec': function('SelfArgs', [{'abcArgsPSAr2': [{...}, {...}], 'abcArgsPSAr': 'abcArgsPSArVal'}], {...}), 'self': {...}, 'abcSelfPSAr': 'abcSelfPSArVal', 'args': [{...}]}>
474s(a): function('Args')
475s(pa1): function('Args', ['abcArgsPA1'])
476s(pa2): function('Args')
477s(pa3): function('Args', ['abcArgsPA3'], {'abcSelfPA3': 'abcSelfPA3Val'})
478s(pa4): function('Args', {'abcSelfPA4': 'abcSelfPA4Val'})
479s(sa): function('SelfArgs')
480s(psa1): function('SelfArgs', ['abcArgsPSA1'])
481s(psa2): function('SelfArgs')
482s(psa3): function('SelfArgs', ['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'})
483s(psa4): function('SelfArgs', {'abcSelfPSA4': 'abcSelfPSA4Val'})
484a(): !result: []
485pa1(): !result: ['abcArgsPA1']
486pa2(): !result: []
487pa3(): !result: ['abcArgsPA3']
488pa4(): !result: []
489sa(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
490psa1(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
491psa2(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
492psa3(): !result: [['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}]
493psa4(): !result: [[], {'abcSelfPSA4': 'abcSelfPSA4Val'}]
494a(42, 43): !result: [42, 43]
495pa1(42, 43): !result: ['abcArgsPA1', 42, 43]
496pa2(42, 43): !result: [42, 43]
497pa3(42, 43): !result: ['abcArgsPA3', 42, 43]
498pa4(42, 43): !result: [42, 43]
499sa(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
500psa1(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
501psa2(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
502psa3(42, 43): !result: [['abcArgsPSA3', 42, 43], {'abcSelfPSA3': 'abcSelfPSA3Val'}]
503psa4(42, 43): !result: [[42, 43], {'abcSelfPSA4': 'abcSelfPSA4Val'}]
504a(42, self={"20": 1}): !result: [42]
505pa1(42, self={"20": 1}): !result: ['abcArgsPA1', 42]
506pa2(42, self={"20": 1}): !result: [42]
507pa3(42, self={"20": 1}): !result: ['abcArgsPA3', 42]
508pa4(42, self={"20": 1}): !result: [42]
509sa(42, self={"20": 1}): !result: [[42], {'20': 1}]
510psa1(42, self={"20": 1}): !result: [['abcArgsPSA1', 42], {'20': 1}]
511psa2(42, self={"20": 1}): !result: [[42], {'20': 1}]
512psa3(42, self={"20": 1}): !result: [['abcArgsPSA3', 42], {'20': 1}]
513psa4(42, self={"20": 1}): !result: [[42], {'20': 1}]
514a(self={"20": 1}): !result: []
515pa1(self={"20": 1}): !result: ['abcArgsPA1']
516pa2(self={"20": 1}): !result: []
517pa3(self={"20": 1}): !result: ['abcArgsPA3']
518pa4(self={"20": 1}): !result: []
519sa(self={"20": 1}): !result: [[], {'20': 1}]
520psa1(self={"20": 1}): !result: [['abcArgsPSA1'], {'20': 1}]
521psa2(self={"20": 1}): !result: [[], {'20': 1}]
522psa3(self={"20": 1}): !result: [['abcArgsPSA3'], {'20': 1}]
523psa4(self={"20": 1}): !result: [[], {'20': 1}]
524a.args: None
525pa1.args: ['abcArgsPA1']
526pa2.args: None
527pa3.args: ['abcArgsPA3']
528pa4.args: None
529sa.args: None
530psa1.args: ['abcArgsPSA1']
531psa2.args: None
532psa3.args: ['abcArgsPSA3']
533psa4.args: None
534a.self: None
535pa1.self: None
536pa2.self: None
537pa3.self: {'abcSelfPA3': 'abcSelfPA3Val'}
538pa4.self: {'abcSelfPA4': 'abcSelfPA4Val'}
539sa.self: None
540psa1.self: None
541psa2.self: None
542psa3.self: {'abcSelfPSA3': 'abcSelfPSA3Val'}
543psa4.self: {'abcSelfPSA4': 'abcSelfPSA4Val'}
544a.name: 'Args'
545pa1.name: 'Args'
546pa2.name: 'Args'
547pa3.name: 'Args'
548pa4.name: 'Args'
549sa.name: 'SelfArgs'
550psa1.name: 'SelfArgs'
551psa2.name: 'SelfArgs'
552psa3.name: 'SelfArgs'
553psa4.name: 'SelfArgs'
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200554'
555abcdef
Bram Moolenaar8110a092016-04-14 15:56:09 +0200556Error detected while processing function RunTest[]..Test:
557line :
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200558abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200559abcA
Bram Moolenaar8110a092016-04-14 15:56:09 +0200560line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200561abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200562['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200563['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200564['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200565[2, 2]
566[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02005671
5681
569function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200570b'testdir'
571test87.in
572b'src'
573testdir/test87.in
574b'testdir'
575test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200576> Output
577>> OutputSetattr
578del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200579>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200580sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200581sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
582sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
583<<< Finished
584>>> Testing NumberToLong using sys.stderr.softspace = %s
585sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
586sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
587sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
588<<< Finished
Bram Moolenaard4247472015-11-02 13:28:59 +0100589assert sys.stdout.isatty()==False:NOT FAILED
590assert sys.stdout.seekable()==False:NOT FAILED
591sys.stdout.close():NOT FAILED
592sys.stdout.flush():NOT FAILED
593assert sys.stderr.isatty()==False:NOT FAILED
594assert sys.stderr.seekable()==False:NOT FAILED
595sys.stderr.close():NOT FAILED
596sys.stderr.flush():NOT FAILED
Bram Moolenaarc476e522013-06-23 13:46:40 +0200597sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200598>> OutputWrite
Bram Moolenaard4247472015-11-02 13:28:59 +0100599assert sys.stdout.writable()==True:NOT FAILED
600assert sys.stdout.readable()==False:NOT FAILED
601assert sys.stderr.writable()==True:NOT FAILED
602assert sys.stderr.readable()==False:NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200603sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
604>> OutputWriteLines
605sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200606sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200607>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200608sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
609sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200610<<< Finished
611> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200612>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200613vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200614vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
615vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
616<<< Finished
617vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200618> VimToPython
619> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200620>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200621vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200622vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
623vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
624<<< Finished
625vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200626> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200627>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200628vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200629vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
630vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
631<<< Finished
632vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200633> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200634>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200635vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200636vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
637vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
638<<< Finished
639> VimForeachRTP
640vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
641vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
642vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
643vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
644> import
645import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
646import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200647import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100648> Options
649>> OptionsItem
650vim.options["abcQ"]:(<class 'KeyError'>, KeyError('abcQ',))
651vim.options[""]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
652>>> Testing StringToChars using vim.options[%s]
653vim.options[1]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
654vim.options[b"\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
655vim.options["\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
656<<< Finished
657>> OptionsContains
658>>> Testing StringToChars using %s in vim.options
6591 in vim.options:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
660b"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
661"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
662<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200663> Dictionary
664>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200665vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200666>> DictionarySetattr
667del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200668d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200669vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200670d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
671d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200672>> _DictionaryItem
673d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
674>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200675d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200676d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200677d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
678<<< Finished
679d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200680dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100681>> DictionaryContains
682"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
6830 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200684>> DictionaryIterNext
685for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
686>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200687dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200688>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200689d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200690d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
692<<< Finished
693>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200694d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200695d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200696d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
697<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200698>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
699d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
700d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
701d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200702<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200703>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
704d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
705d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
706d["a"] = {"abcF" : Mapping({"\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 *Iter* using d["a"] = {"abcF" : %s}
709d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200710d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200711<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200712>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
713d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
714d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
715d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200716d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
717d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
718d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200719<<< Finished
720>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200721d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200722d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200723d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
724<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200725>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
726d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
727d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
728d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200729<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200730>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
731d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
732d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
733d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200735>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
736d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200737d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200738<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200739>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
740d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
741d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
742d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200743d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
744d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
745d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746<<< Finished
747>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200748d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200749d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200750<<< Finished
751>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200752d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200753d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200754d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200755d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
756d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
757d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200758<<< Finished
759>> DictionaryUpdate
760>>> kwargs
761>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200762d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
763d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100764d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200765>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200766d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
767d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200768<<< Finished
769>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200770d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200771d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200772d.update({"\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({"abcF" : {%s : 1}})
775d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
776d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
777d.update({"abcF" : {"\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({"abcF" : Mapping({%s : 1})})
780d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
781d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
782d.update({"abcF" : 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({"abcF" : %s})
785d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200786d.update({"abcF" : 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({"abcF" : %s})
789d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
790d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
791d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200792d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
793d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
794d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795<<< Finished
796>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200797d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200798d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200799d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
800<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200801>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
802d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
803d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
804d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200805<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200806>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
807d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
808d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
809d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200810<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200811>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
812d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200813d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200814<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200815>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
816d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
817d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
818d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200819d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
820d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
821d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200822<<< Finished
823>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200824d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
825d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826<<< Finished
827>>> Testing ConvertFromPyObject using d.update(%s)
828d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200829d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200830d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200831d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
832d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
833d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
835>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200836d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200837d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200838d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
839<<< Finished
840>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200841d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200842d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200843d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
844<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200845>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
846d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
847d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
848d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200849<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200850>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
851d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
852d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
853d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200854<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200855>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
856d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200857d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200858<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200859>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
860d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
861d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
862d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200863d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
864d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
865d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200866<<< Finished
867>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200868d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200869d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200870d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
871<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200872>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
873d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
874d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
875d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200876<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200877>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
878d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
879d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
880d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200881<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200882>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
883d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200884d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200885<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200886>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
887d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
888d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
889d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200890d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
891d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
892d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893<<< Finished
894>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200895d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200896d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897<<< Finished
898>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200899d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200900d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200901d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200902d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
903d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
904d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905<<< Finished
906>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200907d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200908>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200909d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200910> List
911>> ListConstructor
912vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
913vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
914>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200915vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
916vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200917<<< Finished
918>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200919vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200920vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200921vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
922<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200923>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
924vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
925vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
926vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200927<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200928>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
929vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
930vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
931vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200932<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200933>>> Testing *Iter* using vim.List([{"abcF" : %s}])
934vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200935vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200936<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200937>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
938vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
939vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
940vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200941vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
942vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
943vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200944<<< Finished
945>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200946vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200947vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200948vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
949<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200950>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
951vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
952vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
953vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200954<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200955>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
956vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
957vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
958vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200959<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200960>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
961vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200962vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200963<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200964>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
965vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
966vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
967vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200968vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
969vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
970vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200971<<< Finished
972>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200973vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200974vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200975<<< Finished
976>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200977vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200978vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200979vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200980vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
981vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
982vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200983<<< Finished
984>> ListItem
985l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
986>> ListAssItem
987ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
988l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
989>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200990ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200991>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200992l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
993l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100995nel[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 +0100996(b'a', b'b', b'c', b'O')
997nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
998(b'a', b'b', b'c', b'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100999nel[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 +01001000(b'a', b'b', b'c', b'O')
1001nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
1002(b'a', b'b', b'c', b'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +02001003>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001004l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001005l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001006l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1007<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001008>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
1009l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1010l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1011l[:] = [{"abcF" : {"\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[:] = [{"abcF" : Mapping({%s : 1})}]
1014l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1015l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1016l[:] = [{"abcF" : 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[:] = [{"abcF" : %s}]
1019l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020l[:] = [{"abcF" : 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[:] = [{"abcF" : %s}]
1023l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1024l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1025l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1027l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1028l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001031l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001032l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1034<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001035>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
1036l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1037l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1038l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001040>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
1041l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1042l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1043l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001044<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001045>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
1046l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001047l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001048<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001049>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
1050l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1051l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1052l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001053l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1054l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1055l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001056<<< Finished
1057>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001058l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001059l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001060<<< Finished
1061>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001062l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001063l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001064l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001065l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1066l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1067l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001068<<< Finished
1069>> ListConcatInPlace
1070>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001071l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
1072l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001073<<< Finished
1074>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001075l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001076l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001077l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1078<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001079>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
1080l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1081l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1082l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001083<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001084>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
1085l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1086l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1087l.extend([{"abcF" : Mapping({"\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 *Iter* using l.extend([{"abcF" : %s}])
1090l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001091l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001092<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001093>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
1094l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1095l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1096l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001097l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1098l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1099l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001100<<< Finished
1101>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001102l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001103l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001104l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1105<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001106>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
1107l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1108l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1109l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001110<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001111>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1112l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1113l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1114l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001115<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001116>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1117l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001118l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001119<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001120>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1121l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1122l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1123l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001124l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1125l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1126l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001127<<< Finished
1128>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001129l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001130l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001131<<< Finished
1132>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001133l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001134l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001135l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001136l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1137l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1138l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001139<<< Finished
1140>> ListSetattr
1141del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001142l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001143l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001144> Function
1145>> FunctionConstructor
Bram Moolenaar8110a092016-04-14 15:56:09 +02001146>>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001147vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
1148vim.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 +02001149vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8110a092016-04-14 15:56:09 +02001150vim.Function("xxx_non_existent_function_xxx2", args=[]):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx2 does not exist',))
1151vim.Function("xxx_non_existent_function_xxx3", self={}):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx3 does not exist',))
1152vim.Function("xxx_non_existent_function_xxx4", args=[], self={}):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx4 does not exist',))
1153>>> FunctionNew
1154vim.Function("tr", self="abcFuncSelf"):(<class 'AttributeError'>, AttributeError('keys',))
1155vim.Function("tr", args=427423):(<class 'TypeError'>, TypeError('unable to convert int to vim list',))
1156vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1157vim.Function(self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1158vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1159vim.Function("tr", ""):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001160>> FunctionCall
1161>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001162f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001163f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001164f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1165<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001166>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1167f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1168f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1169f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001170<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001171>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1172f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1173f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1174f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001175<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001176>>> Testing *Iter* using f({"abcF" : %s})
1177f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001178f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001179<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001180>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1181f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1182f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1183f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001184f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1185f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1186f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001187<<< Finished
1188>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001189f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001190f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001191f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1192<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001193>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1194f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1195f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1196f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001197<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001198>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1199f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1200f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1201f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001202<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001203>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1204f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001205f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001206<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001207>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1208f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1209f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1210f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001211f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1212f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1213f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001214<<< Finished
1215>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001216f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001217f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001218<<< Finished
1219>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001220f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001221f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001222f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001223f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1224f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1225f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001226<<< Finished
1227>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001228fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001229fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001230fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1231<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001232>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1233fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1234fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1235fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001236<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001237>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1238fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1239fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1240fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001241<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001242>>> Testing *Iter* using fd(self={"abcF" : %s})
1243fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001244fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001245<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001246>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1247fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1248fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1249fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001250fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1251fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1252fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001253<<< Finished
1254>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001255fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001256fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001257fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1258<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001259>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1260fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1261fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1262fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001263<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001264>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1265fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1266fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1267fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001268<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001269>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1270fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001271fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001272<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001273>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1274fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1275fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1276fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001277fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1278fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1279fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001280<<< Finished
1281>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001282fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1283fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001284<<< Finished
1285>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001286fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001287fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001288fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001289fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1290fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1291fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001292<<< Finished
1293>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001294fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001295<<< Finished
1296> TabPage
1297>> TabPageAttr
1298vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1299> TabList
1300>> TabListItem
1301vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1302> Window
1303>> WindowAttr
1304vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1305>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001306vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001307vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001308vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001309>>> Testing NumberToLong using vim.current.window.height = %s
1310vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1311vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1312vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1313<<< Finished
1314>>> Testing NumberToLong using vim.current.window.width = %s
1315vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1316vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1317vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1318<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001319vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1320> WinList
1321>> WinListItem
1322vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1323> Buffer
1324>> StringToLine (indirect)
1325vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001326vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001327>> SetBufferLine (indirect)
1328vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001329>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001330vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1331vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1332>> InsertBufferLines (indirect)
1333vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1334vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1335vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1336>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001337vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001338>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001339vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001340>> BufferAttr
1341vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1342>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001343vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001344vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1345>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001346vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001347vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001348vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1349>> BufferRange
1350vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1351> BufMap
1352>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001353vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001354>>> Testing NumberToLong using vim.buffers[%s]
1355vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1356vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001357vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
1358vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001359<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001360> Current
1361>> CurrentGetattr
1362vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1363>> CurrentSetattr
1364vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001365vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1366vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1367vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001368vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001369['.']
1370'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020013713,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001372before
1373after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001374pythonx/topmodule/__init__.py
1375pythonx/topmodule/submodule/__init__.py
1376pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001377vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001378Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1379vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1380vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1381vim.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 +01001382vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001383vim.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 +01001384Caught KeyboardInterrupt
1385Running :put
1386No exception
1387