blob: d970d5f3aa90c9a727943a17985727c013908414 [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']
Bram Moolenaar9fee7d42013-11-28 17:04:43 +010056l[1](1, 2, 3):(<class 'vim.error'>, error('Vim:E725: Calling dict function without Dictionary: DictNew',))
57f(1, 2, 3):(<class 'vim.error'>, error('Vim:E117: Unknown function: New',))
Bram Moolenaardb913952012-06-29 12:54:53 +020058[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',))
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200489import failing:(<class 'NotImplementedError'>, NotImplementedError())
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 Moolenaarba2d7ff2013-11-04 00:34:53 +0100508>> DictionaryContains
509"" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
5100 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200511>> DictionaryIterNext
512for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
513>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200514dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200515>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200516d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200517d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200518d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
519<<< Finished
520>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200521d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200522d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200523d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
524<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200525>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
526d["a"] = {"abcF" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
527d["a"] = {"abcF" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
528d["a"] = {"abcF" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200529<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200530>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
531d["a"] = {"abcF" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
532d["a"] = {"abcF" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
533d["a"] = {"abcF" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200534<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200535>>> Testing *Iter* using d["a"] = {"abcF" : %s}
536d["a"] = {"abcF" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200537d["a"] = {"abcF" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200538<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200539>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
540d["a"] = {"abcF" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
541d["a"] = {"abcF" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
542d["a"] = {"abcF" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200543d["a"] = {"abcF" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError('keys',))
544d["a"] = {"abcF" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
545d["a"] = {"abcF" : FailingNumber()}:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200546<<< Finished
547>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200548d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200549d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200550d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
551<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200552>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
553d["a"] = Mapping({"abcG" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
554d["a"] = Mapping({"abcG" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
555d["a"] = Mapping({"abcG" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200556<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200557>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
558d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
559d["a"] = Mapping({"abcG" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
560d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200561<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200562>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
563d["a"] = Mapping({"abcG" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200564d["a"] = Mapping({"abcG" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200565<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200566>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
567d["a"] = Mapping({"abcG" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
568d["a"] = Mapping({"abcG" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
569d["a"] = Mapping({"abcG" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200570d["a"] = Mapping({"abcG" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
571d["a"] = Mapping({"abcG" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
572d["a"] = Mapping({"abcG" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200573<<< Finished
574>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200575d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200576d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200577<<< Finished
578>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200579d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200580d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200581d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200582d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError('keys',))
583d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
584d["a"] = FailingNumber():(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200585<<< Finished
586>> DictionaryUpdate
587>>> kwargs
588>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200589d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
590d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200591>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200592d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
593d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200594<<< Finished
595>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200596d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200597d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200598d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
599<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200600>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
601d.update({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
602d.update({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
603d.update({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200604<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200605>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
606d.update({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
607d.update({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
608d.update({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200610>>> Testing *Iter* using d.update({"abcF" : %s})
611d.update({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200612d.update({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200613<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200614>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
615d.update({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
616d.update({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
617d.update({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200618d.update({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
619d.update({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
620d.update({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200621<<< Finished
622>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200623d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200624d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200625d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
626<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200627>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
628d.update(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
629d.update(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
630d.update(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200631<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200632>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
633d.update(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
634d.update(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
635d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200637>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
638d.update(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200639d.update(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200640<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200641>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
642d.update(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
643d.update(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
644d.update(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200645d.update(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
646d.update(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
647d.update(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200650d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
651d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200652<<< Finished
653>>> Testing ConvertFromPyObject using d.update(%s)
654d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200655d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200656d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200657d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
658d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
659d.update(FailingNumber()):(<class 'TypeError'>, TypeError("'FailingNumber' object is not iterable",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200660<<< Finished
661>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200662d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200663d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200664d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
665<<< Finished
666>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200667d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200668d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200669d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
670<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200671>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
672d.update((("a", {"abcF" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
673d.update((("a", {"abcF" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
674d.update((("a", {"abcF" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200676>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
677d.update((("a", {"abcF" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
678d.update((("a", {"abcF" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
679d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200680<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200681>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
682d.update((("a", {"abcF" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200683d.update((("a", {"abcF" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200684<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200685>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
686d.update((("a", {"abcF" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
687d.update((("a", {"abcF" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
688d.update((("a", {"abcF" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200689d.update((("a", {"abcF" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
690d.update((("a", {"abcF" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
691d.update((("a", {"abcF" : FailingNumber()}),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200692<<< Finished
693>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200694d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200695d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200696d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
697<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200698>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
699d.update((("a", Mapping({"abcG" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
700d.update((("a", Mapping({"abcG" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
701d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200702<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200703>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
704d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
705d.update((("a", Mapping({"abcG" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
706d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200707<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200708>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
709d.update((("a", Mapping({"abcG" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200710d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200711<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200712>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
713d.update((("a", Mapping({"abcG" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
714d.update((("a", Mapping({"abcG" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
715d.update((("a", Mapping({"abcG" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200716d.update((("a", Mapping({"abcG" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
717d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
718d.update((("a", Mapping({"abcG" : FailingNumber()})),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200719<<< Finished
720>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200721d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200722d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200723<<< Finished
724>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200725d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200726d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200727d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200728d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError('keys',))
729d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
730d.update((("a", FailingNumber()),)):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200731<<< Finished
732>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200733d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200735d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200736> List
737>> ListConstructor
738vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
739vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
740>>> Testing *Iter* using vim.List(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200741vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
742vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200743<<< Finished
744>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200745vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200746vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200747vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
748<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200749>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
750vim.List([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
751vim.List([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
752vim.List([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200753<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200754>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
755vim.List([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
756vim.List([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
757vim.List([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200758<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200759>>> Testing *Iter* using vim.List([{"abcF" : %s}])
760vim.List([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200761vim.List([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200762<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200763>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
764vim.List([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
765vim.List([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
766vim.List([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200767vim.List([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
768vim.List([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
769vim.List([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200770<<< Finished
771>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200772vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200773vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200774vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
775<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200776>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
777vim.List([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
778vim.List([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
779vim.List([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200780<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200781>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
782vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
783vim.List([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
784vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200785<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200786>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
787vim.List([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200788vim.List([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200789<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200790>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
791vim.List([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
792vim.List([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
793vim.List([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200794vim.List([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
795vim.List([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
796vim.List([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200797<<< Finished
798>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200799vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200800vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200801<<< Finished
802>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200803vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200804vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200805vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200806vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
807vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
808vim.List([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200809<<< Finished
810>> ListItem
811l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
812>> ListAssItem
813ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
814l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
815>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200816ll[1:100] = "abcJ":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200817>>> Testing *Iter* using l[:] = %s
Bram Moolenaardee2e312013-06-23 16:35:47 +0200818l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError('iter',))
819l[:] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200820<<< Finished
821>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200822l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200823l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200824l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
825<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200826>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
827l[:] = [{"abcF" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
828l[:] = [{"abcF" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
829l[:] = [{"abcF" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200830<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200831>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
832l[:] = [{"abcF" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
833l[:] = [{"abcF" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
834l[:] = [{"abcF" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200835<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200836>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
837l[:] = [{"abcF" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200838l[:] = [{"abcF" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200839<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200840>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
841l[:] = [{"abcF" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
842l[:] = [{"abcF" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
843l[:] = [{"abcF" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200844l[:] = [{"abcF" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
845l[:] = [{"abcF" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
846l[:] = [{"abcF" : FailingNumber()}]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200847<<< Finished
848>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200849l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200850l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200851l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
852<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200853>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
854l[:] = [Mapping({"abcG" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
855l[:] = [Mapping({"abcG" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
856l[:] = [Mapping({"abcG" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200857<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200858>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
859l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
860l[:] = [Mapping({"abcG" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
861l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200862<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200863>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
864l[:] = [Mapping({"abcG" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200865l[:] = [Mapping({"abcG" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200866<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200867>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
868l[:] = [Mapping({"abcG" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
869l[:] = [Mapping({"abcG" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
870l[:] = [Mapping({"abcG" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200871l[:] = [Mapping({"abcG" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
872l[:] = [Mapping({"abcG" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
873l[:] = [Mapping({"abcG" : FailingNumber()})]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200874<<< Finished
875>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200876l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200877l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200878<<< Finished
879>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200880l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200881l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200882l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200883l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError('keys',))
884l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
885l[:] = [FailingNumber()]:(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200886<<< Finished
887>> ListConcatInPlace
888>>> Testing *Iter* using l.extend(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200889l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError('iter',))
890l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200891<<< Finished
892>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200893l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200894l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200895l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
896<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200897>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
898l.extend([{"abcF" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
899l.extend([{"abcF" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
900l.extend([{"abcF" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200901<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200902>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
903l.extend([{"abcF" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
904l.extend([{"abcF" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
905l.extend([{"abcF" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200906<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200907>>> Testing *Iter* using l.extend([{"abcF" : %s}])
908l.extend([{"abcF" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200909l.extend([{"abcF" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200910<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200911>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
912l.extend([{"abcF" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
913l.extend([{"abcF" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
914l.extend([{"abcF" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200915l.extend([{"abcF" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
916l.extend([{"abcF" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
917l.extend([{"abcF" : FailingNumber()}]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200918<<< Finished
919>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200920l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200921l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200922l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
923<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200924>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
925l.extend([Mapping({"abcG" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
926l.extend([Mapping({"abcG" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
927l.extend([Mapping({"abcG" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200928<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200929>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
930l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
931l.extend([Mapping({"abcG" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
932l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200933<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200934>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
935l.extend([Mapping({"abcG" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200936l.extend([Mapping({"abcG" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200937<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200938>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
939l.extend([Mapping({"abcG" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
940l.extend([Mapping({"abcG" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
941l.extend([Mapping({"abcG" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200942l.extend([Mapping({"abcG" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
943l.extend([Mapping({"abcG" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
944l.extend([Mapping({"abcG" : FailingNumber()})]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200945<<< Finished
946>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200947l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200948l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200949<<< Finished
950>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200951l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200952l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200953l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200954l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError('keys',))
955l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
956l.extend([FailingNumber()]):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200957<<< Finished
958>> ListSetattr
959del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200960l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError('bool',))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200961l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200962> Function
963>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +0200964vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',))
965vim.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 +0200966vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200967>> FunctionCall
968>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200969f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200970f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200971f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
972<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200973>>> Testing StringToChars using f({"abcF" : {%s : 1}})
974f({"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
975f({"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
976f({"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200977<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200978>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
979f({"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
980f({"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
981f({"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200982<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200983>>> Testing *Iter* using f({"abcF" : %s})
984f({"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200985f({"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200986<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200987>>> Testing ConvertFromPyObject using f({"abcF" : %s})
988f({"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
989f({"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
990f({"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +0200991f({"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
992f({"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
993f({"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
995>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200996f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200997f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200998f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
999<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001000>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1001f(Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1002f(Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1003f(Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001004<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001005>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1006f(Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1007f(Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1008f(Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001009<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001010>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1011f(Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001012f(Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001013<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001014>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1015f(Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1016f(Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1017f(Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001018f(Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1019f(Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1020f(Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
1022>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001023f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001024f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001025<<< Finished
1026>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001027f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001028f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001030f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1031f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1032f(FailingNumber()):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033<<< Finished
1034>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001035fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001036fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001037fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1038<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001039>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1040fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1041fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1042fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001043<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001044>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1045fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1046fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1047fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001048<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001049>>> Testing *Iter* using fd(self={"abcF" : %s})
1050fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001051fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001053>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1054fd(self={"abcF" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1055fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1056fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001057fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1058fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1059fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001060<<< Finished
1061>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001062fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001063fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001064fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1065<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001066>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1067fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1068fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1069fd(self=Mapping({"abcG" : {"\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 fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1072fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
1073fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1074fd(self=Mapping({"abcG" : 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 fd(self=Mapping({"abcG" : %s}))
1077fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001078fd(self=Mapping({"abcG" : 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 fd(self=Mapping({"abcG" : %s}))
1081fd(self=Mapping({"abcG" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',))
1082fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1083fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001084fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1085fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1086fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('int',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001087<<< Finished
1088>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001089fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',))
1090fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001091<<< Finished
1092>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001093fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001094fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001095fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001096fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
1097fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingkey',))
1098fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to vim dictionary',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001099<<< Finished
1100>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001101fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001102<<< Finished
1103> TabPage
1104>> TabPageAttr
1105vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1106> TabList
1107>> TabListItem
1108vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1109> Window
1110>> WindowAttr
1111vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1112>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001113vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001114vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001115vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001116>>> Testing NumberToLong using vim.current.window.height = %s
1117vim.current.window.height = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1118vim.current.window.height = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1119vim.current.window.height = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1120<<< Finished
1121>>> Testing NumberToLong using vim.current.window.width = %s
1122vim.current.window.width = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1123vim.current.window.width = None:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1124vim.current.window.width = -1:(<class 'ValueError'>, ValueError('number must be greater or equal to zero',))
1125<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001126vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1127> WinList
1128>> WinListItem
1129vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1130> Buffer
1131>> StringToLine (indirect)
1132vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001133vim.current.buffer[0] = b"\na":(<class 'vim.error'>, error('string cannot contain newlines',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001134>> SetBufferLine (indirect)
1135vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001136>> SetBufferLineList (indirect)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001137vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1138vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1139>> InsertBufferLines (indirect)
1140vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1141vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1142vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1143>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001144vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001145>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001146vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001147>> BufferAttr
1148vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1149>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001150vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001151vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1152>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001153vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',))
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001154vim.current.buffer.mark("abcM"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001155vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1156>> BufferRange
1157vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1158> BufMap
1159>> BufMapItem
Bram Moolenaar8600e402013-05-30 13:28:41 +02001160vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001161>>> Testing NumberToLong using vim.buffers[%s]
1162vim.buffers[[]]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',))
1163vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',))
1164vim.buffers[-1]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1165vim.buffers[0]:(<class 'ValueError'>, ValueError('number must be greater then zero',))
1166<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001167> Current
1168>> CurrentGetattr
1169vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1170>> CurrentSetattr
1171vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001172vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',))
1173vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',))
1174vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001175vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaardee2e312013-06-23 16:35:47 +02001176['.']
1177'.'
Bram Moolenaara9f22202013-06-11 18:48:21 +020011783,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001179before
1180after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001181pythonx/topmodule/__init__.py
1182pythonx/topmodule/submodule/__init__.py
1183pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001184vim.command("throw 'abcN'"):(<class 'vim.error'>, error('abcN',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001185Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1186vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1187vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1188vim.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 +01001189vim.eval("xxx_unknown_function_xxx()"):(<class 'vim.error'>, error('Vim:E117: Unknown function: xxx_unknown_function_xxx',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001190vim.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 +01001191Caught KeyboardInterrupt
1192Running :put
1193No exception
1194