blob: 06c97a3d2c237695fedafa4f0ad6e86aab670220 [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]
44['a', 0, 1, 2, 3]
45[0, 'b', 2, 3]
46[0, 1, 'c']
47[0, 1, 2, 3, 'd']
48[0, 1, 2, 'e', 3]
49['f', 2, 3]
50[0, 1, 'g', 2, 3]
51['h']
52[0, 1, 2, 3]
53[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
54[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
55[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
56Vim(py3):E725:
57Vim(py3):E117:
58[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020059KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020060TypeError
61TypeError
62ValueError
63TypeError
64TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020065KeyError
66KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020067d : locked:0;scope:0
68dl : locked:1;scope:0
69v: : locked:2;scope:1
70g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020071d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020072dl:{'def': 1}
73l : locked:0
74ll : locked:1
75l:[0]
76ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020077[0, 1, 2]
78['a', 'b']
79['c', 1]
80['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200810.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020082"\0": Vim(let):E859:
83{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010084undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020085vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010086[1]
87[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020088Abc
89bac
90def
91bar
Bram Moolenaara4720012013-05-15 16:27:37 +020092jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020093>>> paste
94 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020095 p/wopts1! KeyError
96 inv: 2! KeyError
97 wopts1! KeyError
98 wopts2! KeyError
99 wopts3! KeyError
100 p/bopts1! KeyError
101 inv: 2! KeyError
102 bopts1! KeyError
103 bopts2! KeyError
104 bopts3! KeyError
105 G: 1
106 W: 1:1 2:1 3:1 4:1
107 B: 1:1 2:1 3:1 4:1
108 del wopts3! KeyError
109 del bopts3! KeyError
110 G: 1
111 W: 1:1 2:1 3:1 4:1
112 B: 1:1 2:1 3:1 4:1
113>>> previewheight
114 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200115 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200116 p/wopts1! KeyError
117 inv: 'a'! KeyError
118 wopts1! KeyError
119 wopts2! KeyError
120 wopts3! KeyError
121 p/bopts1! KeyError
122 inv: 'a'! KeyError
123 bopts1! KeyError
124 bopts2! KeyError
125 bopts3! KeyError
126 G: 5
127 W: 1:5 2:5 3:5 4:5
128 B: 1:5 2:5 3:5 4:5
129 del wopts3! KeyError
130 del bopts3! KeyError
131 G: 5
132 W: 1:5 2:5 3:5 4:5
133 B: 1:5 2:5 3:5 4:5
134>>> operatorfunc
135 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200136 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200137 p/wopts1! KeyError
138 inv: 2! KeyError
139 wopts1! KeyError
140 wopts2! KeyError
141 wopts3! KeyError
142 p/bopts1! KeyError
143 inv: 2! KeyError
144 bopts1! KeyError
145 bopts2! KeyError
146 bopts3! KeyError
147 G: 'A'
148 W: 1:'A' 2:'A' 3:'A' 4:'A'
149 B: 1:'A' 2:'A' 3:'A' 4:'A'
150 del wopts3! KeyError
151 del bopts3! KeyError
152 G: 'A'
153 W: 1:'A' 2:'A' 3:'A' 4:'A'
154 B: 1:'A' 2:'A' 3:'A' 4:'A'
155>>> number
156 p/gopts1! KeyError
157 inv: 0! KeyError
158 gopts1! KeyError
159 p/wopts1: False
160 p/bopts1! KeyError
161 inv: 0! KeyError
162 bopts1! KeyError
163 bopts2! KeyError
164 bopts3! KeyError
165 G: 0
166 W: 1:1 2:1 3:0 4:0
167 B: 1:1 2:1 3:0 4:0
168 del wopts3! ValueError
169 del bopts3! KeyError
170 G: 0
171 W: 1:1 2:1 3:0 4:0
172 B: 1:1 2:1 3:0 4:0
173>>> numberwidth
174 p/gopts1! KeyError
175 inv: -100! KeyError
176 gopts1! KeyError
177 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200178 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200179 p/bopts1! KeyError
180 inv: -100! KeyError
181 bopts1! KeyError
182 bopts2! KeyError
183 bopts3! KeyError
184 G: 8
185 W: 1:3 2:5 3:2 4:8
186 B: 1:3 2:5 3:2 4:8
187 del wopts3! ValueError
188 del bopts3! KeyError
189 G: 8
190 W: 1:3 2:5 3:2 4:8
191 B: 1:3 2:5 3:2 4:8
192>>> colorcolumn
193 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200194 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200195 gopts1! KeyError
196 p/wopts1: b''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200197 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200198 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200199 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200200 bopts1! KeyError
201 bopts2! KeyError
202 bopts3! KeyError
203 G: ''
204 W: 1:'+2' 2:'+3' 3:'+1' 4:''
205 B: 1:'+2' 2:'+3' 3:'+1' 4:''
206 del wopts3! ValueError
207 del bopts3! KeyError
208 G: ''
209 W: 1:'+2' 2:'+3' 3:'+1' 4:''
210 B: 1:'+2' 2:'+3' 3:'+1' 4:''
211>>> statusline
212 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200213 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200214 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200215 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200216 p/bopts1! KeyError
217 inv: 0! KeyError
218 bopts1! KeyError
219 bopts2! KeyError
220 bopts3! KeyError
221 G: '1'
222 W: 1:'2' 2:'4' 3:'1' 4:'1'
223 B: 1:'2' 2:'4' 3:'1' 4:'1'
224 del bopts3! KeyError
225 G: '1'
226 W: 1:'2' 2:'1' 3:'1' 4:'1'
227 B: 1:'2' 2:'1' 3:'1' 4:'1'
228>>> autoindent
229 p/gopts1! KeyError
230 inv: 2! KeyError
231 gopts1! KeyError
232 p/wopts1! KeyError
233 inv: 2! KeyError
234 wopts1! KeyError
235 wopts2! KeyError
236 wopts3! KeyError
237 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200238 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200239 W: 1:0 2:1 3:0 4:1
240 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200241 del wopts3! KeyError
242 del bopts3! ValueError
243 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200244 W: 1:0 2:1 3:0 4:1
245 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200246>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200247 p/gopts1! KeyError
248 inv: 3! KeyError
249 gopts1! KeyError
250 p/wopts1! KeyError
251 inv: 3! KeyError
252 wopts1! KeyError
253 wopts2! KeyError
254 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200255 p/bopts1: 8
256 G: 8
257 W: 1:0 2:2 3:8 4:1
258 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200259 del wopts3! KeyError
260 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200261 G: 8
262 W: 1:0 2:2 3:8 4:1
263 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200264>>> omnifunc
265 p/gopts1! KeyError
266 inv: 1! KeyError
267 gopts1! KeyError
268 p/wopts1! KeyError
269 inv: 1! KeyError
270 wopts1! KeyError
271 wopts2! KeyError
272 wopts3! KeyError
273 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200274 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200275 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200276 W: 1:'A' 2:'B' 3:'' 4:'C'
277 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200278 del wopts3! KeyError
279 del bopts3! ValueError
280 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200281 W: 1:'A' 2:'B' 3:'' 4:'C'
282 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200283>>> preserveindent
284 p/gopts1! KeyError
285 inv: 2! KeyError
286 gopts1! KeyError
287 p/wopts1! KeyError
288 inv: 2! KeyError
289 wopts1! KeyError
290 wopts2! KeyError
291 wopts3! KeyError
292 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200293 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200294 W: 1:0 2:1 3:0 4:1
295 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200296 del wopts3! KeyError
297 del bopts3! ValueError
298 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200299 W: 1:0 2:1 3:0 4:1
300 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200301>>> path
Bram Moolenaar04188112013-06-01 20:32:12 +0200302 p/gopts1: b'.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200303 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200304 p/wopts1! KeyError
305 inv: 0! KeyError
306 wopts1! KeyError
307 wopts2! KeyError
308 wopts3! KeyError
309 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200310 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200311 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200312 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
313 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200314 del wopts3! KeyError
315 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200316 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
317 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200318First line
319First line
320def
321First line
322Second line
323Third line
324(7, 2)
325<buffer test87.in><buffer >
326baz
327bar
328Second line
329Third line
330foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003311:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003321:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200333testdir/foo
3345:BufFilePre:5
3355:BufFilePost:5
336testdir/bar
3371:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003381:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200339testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200340valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200341i:<buffer test87.in>
342i2:<buffer test87.in>
343i:<buffer a>
344i3:<buffer test87.in>
3451:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003468:<buffer a>=<buffer a>
3479:<buffer b>=<buffer b>
34810:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003494
350i4:<buffer test87.in>
351i4:<buffer test87.in>
352StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200353Number of tabs: 4
354Current tab pages:
355 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
356 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200357 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200358 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
359 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200360 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200361 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
362 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200363 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
364 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200365 <tabpage 3>(4): 4 windows, current is <window 0>
366 Windows:
367 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
368 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
369 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
370 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
371Number of windows in current tab page: 4
372Current tab page: <tabpage 3>
373Current window: <window 0>: <window 0> is <window 0>
374Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
375ValueError at assigning foreign tab window
376Type error at assigning None to vim.current.window
377Type error at assigning None to vim.current.tabpage
378Type error at assigning None to vim.current.buffer
379Current tab page: <tabpage 2>
380Current window: <window 0>
381Current buffer: <buffer test87.in>
382Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200383w.valid: [True, False]
384t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200385vim.vars:Dictionary:True
386vim.options:Options:True
387vim.bindeval("{}"):Dictionary:True
388vim.bindeval("[]"):List:True
389vim.bindeval("function('tr')"):Function:True
390vim.current.buffer:Buffer:True
391vim.current.range:Range:True
392vim.current.window:Window:True
393vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200394current:__dir__,buffer,line,range,tabpage,window
395buffer:__dir__,append,mark,name,number,options,range,valid,vars
396window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
397tabpage:__dir__,number,valid,vars,window,windows
398range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200399dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200400list:__dir__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200401function:__dir__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200402output:__dir__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200403{}
404{'a': 1}
405{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200406[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200407['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200408function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200409'
410abcdef
411line :
412abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200413abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200414line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200415abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200416['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200417['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200418['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419[2, 2]
420[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004211
4221
423function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200424b'testdir'
425test87.in
426b'src'
427testdir/test87.in
428b'testdir'
429test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200430> Output
431>> OutputSetattr
432del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200433>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200434sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200435sys.stdout.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
436sys.stdout.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
437<<< Finished
438>>> Testing NumberToLong using sys.stderr.softspace = %s
439sys.stderr.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
440sys.stderr.softspace = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
441sys.stderr.softspace = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
442<<< Finished
Bram Moolenaarc476e522013-06-23 13:46:40 +0200443sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200444>> OutputWrite
445sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
446>> OutputWriteLines
447sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200448sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200449>>> Testing *Iter* using sys.stdout.writelines(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200450sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
451sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200452<<< Finished
453> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200454>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200455vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200456vim.command(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
457vim.command("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
458<<< Finished
459vim.command("", 2):(<class 'TypeError'>, TypeError('command() takes exactly one argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200460> VimToPython
461> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200462>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200463vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200464vim.eval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
465vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
466<<< Finished
467vim.eval("", FailingTrue()):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200468> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200469>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200470vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200471vim.bindeval(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
472vim.bindeval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
473<<< Finished
474vim.eval("", 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200475> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200476>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200477vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200478vim.strwidth(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
479vim.strwidth("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
480<<< Finished
481> VimForeachRTP
482vim.foreach_rtp(None):(<class 'TypeError'>, TypeError("'NoneType' object is not callable",))
483vim.foreach_rtp(NoArgsCall()):(<class 'TypeError'>, TypeError('__call__() takes exactly 1 positional argument (2 given)',))
484vim.foreach_rtp(FailingCall()):(<class 'NotImplementedError'>, NotImplementedError('call',))
485vim.foreach_rtp(int, 2):(<class 'TypeError'>, TypeError('foreach_rtp() takes exactly one argument (2 given)',))
486> import
487import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
488import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
489import failing:(<class 'ImportError'>, ImportError('No module named failing',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200490> Dictionary
491>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200492vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200493>> DictionarySetattr
494del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200495d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200496vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200497d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',))
498d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200499>> _DictionaryItem
500d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
501>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200502d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200503d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200504d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
505<<< Finished
506d.pop("a"):(<class 'KeyError'>, KeyError('a',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200507dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200508>> DictionaryIterNext
509for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
510>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200511dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200513d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200514d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200515d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
516<<< Finished
517>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200518d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200519d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200520d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
521<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200522>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
523d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
524d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
525d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200526<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200527>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
528d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
529d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
530d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200531<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200532>>> Testing *Iter* using d["a"] = {"abcF" : %s}
533d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200534d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200536>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
537d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
538d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
539d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200540d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
541d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
542d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200543<<< Finished
544>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200545d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200546d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200547d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
548<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200549>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
550d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
551d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
552d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200553<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200554>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
555d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
556d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
557d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200558<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200559>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
560d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200561d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200562<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200563>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
564d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
565d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
566d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200567d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
568d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
569d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200570<<< Finished
571>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200572d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200573d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574<<< Finished
575>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200576d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200577d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200579d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
580d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
581d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200582<<< Finished
583>> DictionaryUpdate
584>>> kwargs
585>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200586d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
587d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200588>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200589d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
590d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200591<<< Finished
592>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200593d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200594d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200595d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
596<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200597>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
598d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
599d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
600d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200601<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200602>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
603d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
604d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
605d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200606<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200607>>> Testing *Iter* using d.update({"abcF" : %s})
608d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200609d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200610<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200611>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
612d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
613d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
614d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200615d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
616d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
617d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200618<<< Finished
619>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200620d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200621d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200622d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
623<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200624>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
625d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
626d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
627d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200628<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200629>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
630d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
631d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
632d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200633<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200634>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
635d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200636d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200637<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200638>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
639d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
640d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
641d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200642d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
643d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
644d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200645<<< Finished
646>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200647d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
648d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200649<<< Finished
650>>> Testing ConvertFromPyObject using d.update(%s)
651d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200652d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200653d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200654d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
655d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
656d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200657<<< Finished
658>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200659d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200660d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200661d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
662<<< Finished
663>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200664d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200665d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200666d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
667<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200668>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
669d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
670d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
671d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200672<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200673>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
674d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
675d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
676d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200677<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200678>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
679d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200680d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200681<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200682>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
683d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
684d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
685d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200686d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
687d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
688d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200689<<< Finished
690>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200691d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200692d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200693d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
694<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200695>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
696d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
697d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
698d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200699<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200700>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
701d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
702d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
703d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200704<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200705>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
706d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200707d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200708<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200709>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
710d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
711d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
712d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200713d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
714d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
715d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
717>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200718d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200719d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200720<<< Finished
721>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200722d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200723d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200725d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
726d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
727d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200728<<< Finished
729>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200730d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200731>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200732d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200733> List
734>> ListConstructor
735vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
736vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
737>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200738vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
739vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200740<<< Finished
741>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200742vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200743vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200744vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
745<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200746>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
747vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
748vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
749vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200750<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200751>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
752vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
753vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
754vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200755<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200756>>> Testing *Iter* using vim.List([{"abcF" : %s}])
757vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200758vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200760>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
761vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
762vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
763vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200764vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
765vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
766vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200767<<< Finished
768>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200769vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200770vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200771vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
772<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200773>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
774vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
775vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
776vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200777<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200778>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
779vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
780vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
781vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200782<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200783>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
784vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200785vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200786<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200787>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
788vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
789vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
790vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200791vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
792vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
793vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200794<<< Finished
795>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200796vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200797vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200798<<< Finished
799>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200800vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200801vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200802vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200803vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
804vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
805vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200806<<< Finished
807>> ListItem
808l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
809>> ListAssItem
810ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
811l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
812>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200813ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200814>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200815l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
816l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200817<<< Finished
818>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200819l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200820l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200821l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
822<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200823>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
824l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
825l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
826l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200827<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200828>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
829l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
830l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
831l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200833>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
834l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200835l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200836<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200837>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
838l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
839l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
840l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200841l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
842l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
843l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200844<<< Finished
845>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200846l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200847l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200848l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
849<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200850>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
851l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
852l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
853l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200854<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200855>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
856l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
857l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
858l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200859<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200860>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
861l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200862l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200863<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200864>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
865l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
866l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
867l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200868l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
869l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
870l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200871<<< Finished
872>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200873l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200874l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200875<<< Finished
876>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200877l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200878l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200879l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200880l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
881l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
882l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200883<<< Finished
884>> ListConcatInPlace
885>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200886l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
887l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200888<<< Finished
889>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200890l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200891l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200892l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
893<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200894>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
895l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
896l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
897l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200898<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200899>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
900l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
901l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
902l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200903<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200904>>> Testing *Iter* using l.extend([{"abcF" : %s}])
905l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200906l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200908>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
909l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
910l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
911l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200912l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
913l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
914l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200915<<< Finished
916>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200917l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200918l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
920<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200921>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
922l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
923l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
924l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200925<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200926>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
927l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
928l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
929l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200930<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200931>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
932l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200933l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200934<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200935>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
936l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
937l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
938l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200939l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
940l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
941l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200942<<< Finished
943>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200944l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200945l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946<<< Finished
947>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200948l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200949l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200950l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200951l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
952l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
953l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200954<<< Finished
955>> ListSetattr
956del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200957l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200958l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200959> Function
960>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +0200961vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
962vim.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 +0200963vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200964>> FunctionCall
965>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200966f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200967f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
969<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200970>>> Testing StringToChars using f({"abcF" : {%s : 1}})
971f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
972f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
973f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200974<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200975>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
976f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
977f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
978f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200979<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200980>>> Testing *Iter* using f({"abcF" : %s})
981f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200982f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200983<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200984>>> Testing ConvertFromPyObject using f({"abcF" : %s})
985f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
986f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
987f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200988f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
989f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
990f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200991<<< Finished
992>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200993f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200994f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200995f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
996<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200997>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
998f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
999f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1000f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001001<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001002>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1003f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1004f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1005f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001006<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001007>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1008f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001009f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001010<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001011>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1012f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1013f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1014f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001015f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1016f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1017f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001018<<< Finished
1019>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001020f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001021f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001022<<< Finished
1023>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001024f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001025f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001026f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001027f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1028f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1029f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001030<<< Finished
1031>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001032fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001033fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001034fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1035<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001036>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1037fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1038fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1039fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001040<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001041>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1042fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1043fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1044fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001045<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001046>>> Testing *Iter* using fd(self={"abcF" : %s})
1047fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001048fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001050>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1051fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1052fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1053fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001054fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1055fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1056fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001057<<< Finished
1058>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001059fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001060fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001061fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1062<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001063>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1064fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1065fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1066fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001067<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001068>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1069fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1070fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1071fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001072<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001073>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1074fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001075fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001076<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001077>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1078fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1079fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1080fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001081fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1082fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1083fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001084<<< Finished
1085>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001086fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1087fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001088<<< Finished
1089>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001090fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001091fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001092fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001093fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1094fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1095fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001096<<< Finished
1097>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001098fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001099<<< Finished
1100> TabPage
1101>> TabPageAttr
1102vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1103> TabList
1104>> TabListItem
1105vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1106> Window
1107>> WindowAttr
1108vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1109>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001110vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001111vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001112vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001113>>> Testing NumberToLong using vim.current.window.height = %s
1114vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1115vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1116vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1117<<< Finished
1118>>> Testing NumberToLong using vim.current.window.width = %s
1119vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1120vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1121vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1122<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001123vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1124> WinList
1125>> WinListItem
1126vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1127> Buffer
1128>> StringToLine (indirect)
1129vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001130vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001131>> SetBufferLine (indirect)
1132vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001133>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001134vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1135vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1136>> InsertBufferLines (indirect)
1137vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1138vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1139vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1140>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001141vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001142>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001143vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001144>> BufferAttr
1145vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1146>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001147vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001148vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1149>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001150vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001151vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001152vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1153>> BufferRange
1154vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1155> BufMap
1156>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001157vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001158>>> Testing NumberToLong using vim.buffers[%s]
1159vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1160vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1161vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1162vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1163<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001164> Current
1165>> CurrentGetattr
1166vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1167>> CurrentSetattr
1168vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001169vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1170vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1171vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001172vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001173['.']
1174'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020011753,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001176before
1177after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001178pythonx/topmodule/__init__.py
1179pythonx/topmodule/submodule/__init__.py
1180pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001181vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001182Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1183vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1184vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1185vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1186vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))