blob: b36727958f76ecacc7cf3073ef3ad2f7adcc871c [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 Moolenaar2177f9f2016-05-25 20:39:09 +0200451function:__dir__,args,auto_rebind,self,softspace
Bram Moolenaar6d4431e2016-04-21 20:00:56 +0200452output:__dir__,close,closed,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], {})
Bram Moolenaar2177f9f2016-05-25 20:39:09 +0200463auto_rebind
464function('tr')
465function('tr', [123, 3, 4])
466function('tr')
467function('tr', {})
468function('tr', [123, 3, 4], {})
Bram Moolenaar8110a092016-04-14 15:56:09 +0200469a: <vim.Function 'Args'>
470pa1: <vim.Function 'Args', args=['abcArgsPA1']>
471pa2: <vim.Function 'Args'>
472pa3: <vim.Function 'Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'}>
473pa4: <vim.Function 'Args', self={'abcSelfPA4': 'abcSelfPA4Val'}>
474sa: <vim.Function 'SelfArgs'>
475psa1: <vim.Function 'SelfArgs', args=['abcArgsPSA1']>
476psa2: <vim.Function 'SelfArgs'>
477psa3: <vim.Function 'SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'}>
478psa4: <vim.Function 'SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'}>
Bram Moolenaar2177f9f2016-05-25 20:39:09 +0200479psa5: <vim.Function 'SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}>
480psa6: <vim.Function 'SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}>
481psa7: <vim.Function 'SelfArgs', args=['abcArgsPSA7']>
482psa8: <vim.Function 'SelfArgs'>
483psa9: <vim.Function 'SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True>
484psaA: <vim.Function 'SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto_rebind=True>
485psaB: <vim.Function 'SelfArgs', args=['abcArgsPSAB']>
486psaC: <vim.Function 'SelfArgs'>
Bram Moolenaar8110a092016-04-14 15:56:09 +0200487psar: <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': [{...}]}>
488s(a): function('Args')
489s(pa1): function('Args', ['abcArgsPA1'])
490s(pa2): function('Args')
491s(pa3): function('Args', ['abcArgsPA3'], {'abcSelfPA3': 'abcSelfPA3Val'})
492s(pa4): function('Args', {'abcSelfPA4': 'abcSelfPA4Val'})
493s(sa): function('SelfArgs')
494s(psa1): function('SelfArgs', ['abcArgsPSA1'])
495s(psa2): function('SelfArgs')
496s(psa3): function('SelfArgs', ['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'})
497s(psa4): function('SelfArgs', {'abcSelfPSA4': 'abcSelfPSA4Val'})
Bram Moolenaar2177f9f2016-05-25 20:39:09 +0200498s(psa5): function('SelfArgs', {'abcSelfPSA5': 'abcSelfPSA5Val'})
499s(psa6): function('SelfArgs', ['abcArgsPSA6'], {'abcSelfPSA6': 'abcSelfPSA6Val'})
500s(psa7): function('SelfArgs', ['abcArgsPSA7'])
501s(psa8): function('SelfArgs')
502s(psa9): function('SelfArgs', {'abcSelfPSA9': 'abcSelfPSA9Val'})
503s(psaA): function('SelfArgs', ['abcArgsPSAA'], {'abcSelfPSAA': 'abcSelfPSAAVal'})
504s(psaB): function('SelfArgs', ['abcArgsPSAB'])
505s(psaC): function('SelfArgs')
506d.sa(): [[], {'f': function('SelfArgs')}]
507d.psa1(): [['abcArgsPSA1'], {'f': function('SelfArgs', ['abcArgsPSA1'])}]
508d.psa2(): [[], {'f': function('SelfArgs')}]
509d.psa3(): [['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}]
510d.psa4(): [[], {'abcSelfPSA4': 'abcSelfPSA4Val'}]
511d.psa5(): [[], {'abcSelfPSA5': 'abcSelfPSA5Val'}]
512d.psa6(): [['abcArgsPSA6'], {'abcSelfPSA6': 'abcSelfPSA6Val'}]
513d.psa7(): [['abcArgsPSA7'], {'f': function('SelfArgs', ['abcArgsPSA7'])}]
514d.psa8(): [[], {'f': function('SelfArgs')}]
515d.psa9(): [[], {'f': function('SelfArgs', {'abcSelfPSA9': 'abcSelfPSA9Val'})}]
516d.psaA(): [['abcArgsPSAA'], {'f': function('SelfArgs', ['abcArgsPSAA'], {'abcSelfPSAA': 'abcSelfPSAAVal'})}]
517d.psaB(): [['abcArgsPSAB'], {'f': function('SelfArgs', ['abcArgsPSAB'])}]
518d.psaC(): [[], {'f': function('SelfArgs')}]
Bram Moolenaar8110a092016-04-14 15:56:09 +0200519a(): !result: []
520pa1(): !result: ['abcArgsPA1']
521pa2(): !result: []
522pa3(): !result: ['abcArgsPA3']
523pa4(): !result: []
524sa(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
525psa1(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
526psa2(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
527psa3(): !result: [['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}]
528psa4(): !result: [[], {'abcSelfPSA4': 'abcSelfPSA4Val'}]
529a(42, 43): !result: [42, 43]
530pa1(42, 43): !result: ['abcArgsPA1', 42, 43]
531pa2(42, 43): !result: [42, 43]
532pa3(42, 43): !result: ['abcArgsPA3', 42, 43]
533pa4(42, 43): !result: [42, 43]
534sa(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
535psa1(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
536psa2(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',)
537psa3(42, 43): !result: [['abcArgsPSA3', 42, 43], {'abcSelfPSA3': 'abcSelfPSA3Val'}]
538psa4(42, 43): !result: [[42, 43], {'abcSelfPSA4': 'abcSelfPSA4Val'}]
539a(42, self={"20": 1}): !result: [42]
540pa1(42, self={"20": 1}): !result: ['abcArgsPA1', 42]
541pa2(42, self={"20": 1}): !result: [42]
542pa3(42, self={"20": 1}): !result: ['abcArgsPA3', 42]
543pa4(42, self={"20": 1}): !result: [42]
544sa(42, self={"20": 1}): !result: [[42], {'20': 1}]
545psa1(42, self={"20": 1}): !result: [['abcArgsPSA1', 42], {'20': 1}]
546psa2(42, self={"20": 1}): !result: [[42], {'20': 1}]
547psa3(42, self={"20": 1}): !result: [['abcArgsPSA3', 42], {'20': 1}]
548psa4(42, self={"20": 1}): !result: [[42], {'20': 1}]
549a(self={"20": 1}): !result: []
550pa1(self={"20": 1}): !result: ['abcArgsPA1']
551pa2(self={"20": 1}): !result: []
552pa3(self={"20": 1}): !result: ['abcArgsPA3']
553pa4(self={"20": 1}): !result: []
554sa(self={"20": 1}): !result: [[], {'20': 1}]
555psa1(self={"20": 1}): !result: [['abcArgsPSA1'], {'20': 1}]
556psa2(self={"20": 1}): !result: [[], {'20': 1}]
557psa3(self={"20": 1}): !result: [['abcArgsPSA3'], {'20': 1}]
558psa4(self={"20": 1}): !result: [[], {'20': 1}]
559a.args: None
560pa1.args: ['abcArgsPA1']
561pa2.args: None
562pa3.args: ['abcArgsPA3']
563pa4.args: None
564sa.args: None
565psa1.args: ['abcArgsPSA1']
566psa2.args: None
567psa3.args: ['abcArgsPSA3']
568psa4.args: None
569a.self: None
570pa1.self: None
571pa2.self: None
572pa3.self: {'abcSelfPA3': 'abcSelfPA3Val'}
573pa4.self: {'abcSelfPA4': 'abcSelfPA4Val'}
574sa.self: None
575psa1.self: None
576psa2.self: None
577psa3.self: {'abcSelfPSA3': 'abcSelfPSA3Val'}
578psa4.self: {'abcSelfPSA4': 'abcSelfPSA4Val'}
579a.name: 'Args'
580pa1.name: 'Args'
581pa2.name: 'Args'
582pa3.name: 'Args'
583pa4.name: 'Args'
584sa.name: 'SelfArgs'
585psa1.name: 'SelfArgs'
586psa2.name: 'SelfArgs'
587psa3.name: 'SelfArgs'
588psa4.name: 'SelfArgs'
Bram Moolenaar2177f9f2016-05-25 20:39:09 +0200589a.auto_rebind: 1
590pa1.auto_rebind: 1
591pa2.auto_rebind: 1
592pa3.auto_rebind: 0
593pa4.auto_rebind: 0
594sa.auto_rebind: 1
595psa1.auto_rebind: 1
596psa2.auto_rebind: 1
597psa3.auto_rebind: 0
598psa4.auto_rebind: 0
599psa5.auto_rebind: 0
600psa6.auto_rebind: 0
601psa7.auto_rebind: 1
602psa8.auto_rebind: 1
603psa9.auto_rebind: 1
604psaA.auto_rebind: 1
605psaB.auto_rebind: 1
606psaC.auto_rebind: 1
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200607'
608abcdef
Bram Moolenaar8110a092016-04-14 15:56:09 +0200609Error detected while processing function RunTest[]..Test:
610line :
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200611abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200612abcA
Bram Moolenaar8110a092016-04-14 15:56:09 +0200613line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200614abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200615['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200616['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200617['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200618[2, 2]
619[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02006201
6211
622function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200623b'testdir'
624test87.in
625b'src'
626testdir/test87.in
627b'testdir'
628test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200629> Output
630>> OutputSetattr
631del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200632>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200633sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200634sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
635sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
636<<< Finished
637>>> Testing NumberToLong using sys.stderr.softspace = %s
638sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
639sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
640sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
641<<< Finished
Bram Moolenaard4247472015-11-02 13:28:59 +0100642assert sys.stdout.isatty()==False:NOT FAILED
643assert sys.stdout.seekable()==False:NOT FAILED
644sys.stdout.close():NOT FAILED
645sys.stdout.flush():NOT FAILED
646assert sys.stderr.isatty()==False:NOT FAILED
647assert sys.stderr.seekable()==False:NOT FAILED
648sys.stderr.close():NOT FAILED
649sys.stderr.flush():NOT FAILED
Bram Moolenaarc476e522013-06-23 13:46:40 +0200650sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200651>> OutputWrite
Bram Moolenaard4247472015-11-02 13:28:59 +0100652assert sys.stdout.writable()==True:NOT FAILED
653assert sys.stdout.readable()==False:NOT FAILED
654assert sys.stderr.writable()==True:NOT FAILED
655assert sys.stderr.readable()==False:NOT FAILED
Bram Moolenaar6d4431e2016-04-21 20:00:56 +0200656assert sys.stdout.closed()==False:NOT FAILED
657assert sys.stderr.closed()==False:NOT FAILED
658assert sys.stdout.errors=="strict":NOT FAILED
659assert sys.stderr.errors=="strict":NOT FAILED
660assert sys.stdout.encoding==sys.stderr.encoding:NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200661sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
662>> OutputWriteLines
663sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200664sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200665>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200666sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
667sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200668<<< Finished
669> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200670>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200671vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200672vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
673vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
674<<< Finished
675vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200676> VimToPython
677> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200678>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200679vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200680vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
681vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
682<<< Finished
683vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200684> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200685>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200686vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200687vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
688vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
689<<< Finished
690vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200692>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200693vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200694vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
695vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
696<<< Finished
697> VimForeachRTP
698vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
699vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
700vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
701vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
702> import
703import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
704import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200705import failing:(<class 'NotImplementedError'>, NotImplementedError())
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100706> Options
707>> OptionsItem
708vim.options["abcQ"]:(<class 'KeyError'>, KeyError('abcQ',))
709vim.options[""]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
710>>> Testing StringToChars using vim.options[%s]
711vim.options[1]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
712vim.options[b"\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
713vim.options["\0"]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
714<<< Finished
715>> OptionsContains
716>>> Testing StringToChars using %s in vim.options
7171 in vim.options:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
718b"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
719"\0" in vim.options:(<class 'TypeError'>, TypeError('expected bytes with no null',))
720<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200721> Dictionary
722>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200723vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724>> DictionarySetattr
725del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200726d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200727vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200728d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
729d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200730>> _DictionaryItem
731d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
732>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200733d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200734d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200735d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
736<<< Finished
737d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200738dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100739>> DictionaryContains
740"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
7410 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200742>> DictionaryIterNext
743for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
744>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200745dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200747d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200748d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200749d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
750<<< Finished
751>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200752d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200753d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200754d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
755<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200756>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
757d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
758d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
759d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200760<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200761>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
762d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
763d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
764d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200765<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200766>>> Testing *Iter* using d["a"] = {"abcF" : %s}
767d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200768d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200769<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200770>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
771d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
772d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
773d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200774d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
775d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
776d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200777<<< Finished
778>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200779d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200780d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200781d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
782<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200783>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
784d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
785d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
786d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200788>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
789d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
790d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
791d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200792<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200793>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
794d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200795d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200796<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200797>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
798d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
799d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
800d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200801d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
802d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
803d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200804<<< Finished
805>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200806d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200807d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808<<< Finished
809>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200810d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200811d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200813d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
814d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
815d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200816<<< Finished
817>> DictionaryUpdate
818>>> kwargs
819>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200820d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
821d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100822d.update([FailingIterNextN(1)]):(<class 'NotImplementedError'>, NotImplementedError('next N',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200823>>> 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 StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200828d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200829d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200830d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
831<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200832>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
833d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
834d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
835d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200836<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200837>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
838d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
839d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
840d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200841<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200842>>> Testing *Iter* using d.update({"abcF" : %s})
843d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200844d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200845<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200846>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
847d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
848d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
849d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200850d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
851d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
852d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200853<<< Finished
854>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200855d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200856d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200857d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
858<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200859>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
860d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
861d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
862d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200863<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200864>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
865d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
866d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
867d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200868<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200869>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
870d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200871d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200872<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200873>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
874d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
875d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
876d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200877d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
878d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
879d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200880<<< Finished
881>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200882d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
883d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200884<<< Finished
885>>> Testing ConvertFromPyObject using d.update(%s)
886d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200887d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200888d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200889d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
890d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
891d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200892<<< Finished
893>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200894d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200895d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200896d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
897<<< Finished
898>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200899d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200900d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200901d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
902<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200903>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
904d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
905d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
906d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200908>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
909d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
910d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
911d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200912<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200913>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
914d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200915d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200916<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200917>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
918d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
919d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
920d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200921d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
922d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
923d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200924<<< Finished
925>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200926d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200927d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200928d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
929<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200930>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
931d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
932d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
933d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200934<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200935>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
936d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
937d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
938d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200939<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200940>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
941d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200942d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200943<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200944>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
945d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
946d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
947d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200948d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
949d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
950d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200951<<< Finished
952>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200953d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200954d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200955<<< Finished
956>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200957d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200958d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200959d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200960d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
961d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
962d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200963<<< Finished
964>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200965d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200966>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200967d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968> List
969>> ListConstructor
970vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
971vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
972>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200973vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
974vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200975<<< Finished
976>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200977vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200978vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200979vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
980<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200981>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
982vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
983vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
984vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200985<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200986>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
987vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
988vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
989vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200990<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200991>>> Testing *Iter* using vim.List([{"abcF" : %s}])
992vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200993vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200995>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
996vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
997vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
998vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200999vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1000vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1001vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001002<<< Finished
1003>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001004vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001005vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001006vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1007<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001008>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
1009vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1010vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1011vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001012<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001013>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
1014vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1015vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1016vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001018>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
1019vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001022>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
1023vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1024vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1025vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1027vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1028vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001031vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001032vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033<<< Finished
1034>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001035vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001036vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001037vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001038vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1039vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1040vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001041<<< Finished
1042>> ListItem
1043l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
1044>> ListAssItem
1045ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
1046l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
1047>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001048ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +02001050l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
1051l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001053nel[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 +01001054(b'a', b'b', b'c', b'O')
1055nel[1:10:2] = "a":(<class 'ValueError'>, ValueError('attempt to assign sequence of size 1 to extended slice of size 2',))
1056(b'a', b'b', b'c', b'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001057nel[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 +01001058(b'a', b'b', b'c', b'O')
1059nel[:] = FailingIterNextN(2):(<class 'NotImplementedError'>, NotImplementedError('next N',))
1060(b'a', b'b', b'c', b'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +02001061>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001062l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001063l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001064l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1065<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001066>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
1067l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1068l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1069l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001070<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001071>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
1072l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1073l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1074l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001075<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001076>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
1077l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001078l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001079<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001080>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
1081l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1082l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1083l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001084l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1085l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1086l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001087<<< Finished
1088>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001089l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001090l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001091l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1092<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001093>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
1094l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1095l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1096l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001097<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001098>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
1099l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1100l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
1101l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001102<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001103>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
1104l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001105l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001106<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001107>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
1108l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1109l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1110l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001111l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1112l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1113l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001114<<< Finished
1115>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001116l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001117l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001118<<< Finished
1119>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +02001120l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001121l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001122l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001123l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
1124l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1125l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001126<<< Finished
1127>> ListConcatInPlace
1128>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001129l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
1130l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001131<<< Finished
1132>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001133l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001134l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001135l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1136<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001137>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
1138l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1139l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1140l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001141<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001142>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
1143l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1144l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1145l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001146<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001147>>> Testing *Iter* using l.extend([{"abcF" : %s}])
1148l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001149l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001150<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001151>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
1152l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1153l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1154l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001155l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1156l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1157l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001158<<< Finished
1159>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001160l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001161l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001162l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1163<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001164>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
1165l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1166l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1167l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001168<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001169>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1170l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1171l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1172l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001173<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001174>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1175l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001176l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001177<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001178>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1179l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1180l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1181l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001182l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1183l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1184l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001185<<< Finished
1186>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001187l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001188l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001189<<< Finished
1190>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001191l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001192l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001193l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001194l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1195l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1196l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001197<<< Finished
1198>> ListSetattr
1199del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001200l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001201l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001202> Function
1203>> FunctionConstructor
Bram Moolenaar8110a092016-04-14 15:56:09 +02001204>>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001205vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
1206vim.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 +02001207vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8110a092016-04-14 15:56:09 +02001208vim.Function("xxx_non_existent_function_xxx2", args=[]):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx2 does not exist',))
1209vim.Function("xxx_non_existent_function_xxx3", self={}):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx3 does not exist',))
1210vim.Function("xxx_non_existent_function_xxx4", args=[], self={}):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx4 does not exist',))
1211>>> FunctionNew
1212vim.Function("tr", self="abcFuncSelf"):(<class 'AttributeError'>, AttributeError('keys',))
1213vim.Function("tr", args=427423):(<class 'TypeError'>, TypeError('unable to convert int to vim list',))
1214vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1215vim.Function(self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1216vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('keys',))
1217vim.Function("tr", ""):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001218>> FunctionCall
1219>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001220f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001221f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001222f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1223<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001224>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1225f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1226f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1227f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001228<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001229>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1230f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1231f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1232f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001233<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001234>>> Testing *Iter* using f({"abcF" : %s})
1235f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001236f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001237<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001238>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1239f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1240f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1241f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001242f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1243f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1244f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001245<<< Finished
1246>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001247f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001248f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001249f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1250<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001251>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1252f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1253f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1254f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001255<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001256>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1257f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1258f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1259f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001260<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001261>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1262f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001263f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001264<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001265>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1266f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1267f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1268f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001269f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1270f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1271f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001272<<< Finished
1273>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001274f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001275f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001276<<< Finished
1277>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001278f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001279f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001280f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001281f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1282f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1283f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001284<<< Finished
1285>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001286fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001287fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001288fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1289<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001290>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1291fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1292fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1293fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001294<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001295>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1296fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1297fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1298fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001299<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001300>>> Testing *Iter* using fd(self={"abcF" : %s})
1301fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001302fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001303<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001304>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1305fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1306fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1307fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001308fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1309fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1310fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001311<<< Finished
1312>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001313fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001314fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001315fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1316<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001317>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1318fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1319fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1320fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001321<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001322>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1323fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1324fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1325fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001326<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001327>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1328fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001329fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001330<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001331>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1332fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1333fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1334fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001335fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1336fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1337fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001338<<< Finished
1339>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001340fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1341fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001342<<< Finished
1343>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001344fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001345fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001346fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001347fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1348fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1349fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001350<<< Finished
1351>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001352fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001353<<< Finished
1354> TabPage
1355>> TabPageAttr
1356vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1357> TabList
1358>> TabListItem
1359vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1360> Window
1361>> WindowAttr
1362vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1363>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001364vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001365vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001366vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001367>>> Testing NumberToLong using vim.current.window.height = %s
1368vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1369vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1370vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1371<<< Finished
1372>>> Testing NumberToLong using vim.current.window.width = %s
1373vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1374vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1375vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1376<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001377vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1378> WinList
1379>> WinListItem
1380vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1381> Buffer
1382>> StringToLine (indirect)
1383vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001384vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001385>> SetBufferLine (indirect)
1386vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001387>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001388vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1389vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1390>> InsertBufferLines (indirect)
1391vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1392vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1393vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1394>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001395vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001396>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001397vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001398>> BufferAttr
1399vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1400>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001401vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001402vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1403>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001404vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001405vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001406vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1407>> BufferRange
1408vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1409> BufMap
1410>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001411vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001412>>> Testing NumberToLong using vim.buffers[%s]
1413vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1414vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001415vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
1416vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater than zero',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001417<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001418> Current
1419>> CurrentGetattr
1420vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1421>> CurrentSetattr
1422vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001423vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1424vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1425vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001426vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001427['.']
1428'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020014293,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001430before
1431after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001432pythonx/topmodule/__init__.py
1433pythonx/topmodule/submodule/__init__.py
1434pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001435vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001436Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1437vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1438vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1439vim.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 +01001440vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001441vim.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 +01001442Caught KeyboardInterrupt
1443Running :put
1444No exception
1445