blob: 414dc9e424193644ba2c417db333d48ce6a4ee44 [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020071
8[b'-1', b'0', b'1', b'b', b'f']
9[-1, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >, b'asd']
10[(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >), (b'f', <vim.Function '1'>)]
Bram Moolenaardb913952012-06-29 12:54:53 +020011'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020012'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020013'1' : 'asd'
14'b' : [1, 2, function('strlen')]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020015'f' : function('1')
Bram Moolenaardb913952012-06-29 12:54:53 +020016[0, function('strlen')]
17[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020018[1, 2, function('strlen')]
19[1, 2, function('strlen')]
201
21'asd'
222
23True
24False
25True
26False
27[b'0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029(b'0', -1)
Bram Moolenaara9922d62013-05-30 13:01:18 +020030None
31[]
Bram Moolenaardb913952012-06-29 12:54:53 +020032[0, 1, 2, 3]
33[0, 1, 2, 3]
34[0, 1, 3]
35[0, 1]
36[0, 1]
37[0, 1]
38[0, 1, 2, 3]
39[0, 1, 2, 3]
40[0, 2, 3]
41[2, 3]
42[2, 3]
43[2, 3]
44['a', 0, 1, 2, 3]
45[0, 'b', 2, 3]
46[0, 1, 'c']
47[0, 1, 2, 3, 'd']
48[0, 1, 2, 'e', 3]
49['f', 2, 3]
50[0, 1, 'g', 2, 3]
51['h']
52[0, 1, 2, 3]
53[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
54[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
55[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
56Vim(py3):E725:
57Vim(py3):E117:
58[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020059KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020060TypeError
61TypeError
62ValueError
63TypeError
64TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020065KeyError
66KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020067d : locked:0;scope:0
68dl : locked:1;scope:0
69v: : locked:2;scope:1
70g: : locked:0;scope:2
71d:{'abc': 1}
72dl:{'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
194 inv: 'abc'! KeyError
195 gopts1! KeyError
196 p/wopts1: b''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200197 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200198 p/bopts1! KeyError
199 inv: 'abc'! KeyError
200 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[]
407['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200408function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200409'
410abcdef
411line :
412abcdef
413abc
414line :
415abc'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200416['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200417['a', 'a']
418['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419[2, 2]
420[2, 2]
Bram Moolenaarf4258302013-06-02 18:20:17 +0200421b'testdir'
422test87.in
423b'src'
424testdir/test87.in
425b'testdir'
426test87.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200427> Output
428>> OutputSetattr
429del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
430sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('softspace must be an integer',))
431sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute',))
432>> OutputWrite
433sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
434>> OutputWriteLines
435sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200436sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200437>>> Testing *Iter* using sys.stdout.writelines(%s)
438sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
439sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
440<<< Finished
441> VimCommand
442vim.command(1):(<class 'TypeError'>, TypeError('must be str, not int',))
443> VimToPython
444> VimEval
445vim.eval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
446> VimEvalPy
447vim.bindeval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
448> VimStrwidth
449vim.strwidth(1):(<class 'TypeError'>, TypeError('must be str, not int',))
450> Dictionary
451>> DictionaryConstructor
452vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2',))
453>> DictionarySetattr
454del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
455d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
456vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
457d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
458d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
459>> _DictionaryItem
460d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
461>>> Testing StringToChars using d.get(%s)
462d.get(1):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200463d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200464d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
465<<< Finished
466d.pop("a"):(<class 'KeyError'>, KeyError('a',))
467dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
468>> DictionaryIterNext
469for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
470>> DictionaryAssItem
471dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
472>>> Testing StringToChars using d[%s] = 1
473d[1] = 1:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200474d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200475d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
476<<< Finished
477>>> Testing StringToChars using d["a"] = {%s : 1}
478d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200479d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200480d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
481<<< Finished
482>>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
483d["a"] = {"abc" : {1 : 1}}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200484d["a"] = {"abc" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200485d["a"] = {"abc" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
486<<< Finished
487>>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
488d["a"] = {"abc" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200489d["a"] = {"abc" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200490d["a"] = {"abc" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
491<<< Finished
492>>> Testing *Iter* using d["a"] = {"abc" : %s}
493d["a"] = {"abc" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
494d["a"] = {"abc" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError())
495<<< Finished
496>>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
497d["a"] = {"abc" : None}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200498d["a"] = {"abc" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200499d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
500d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError())
501d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError())
502<<< Finished
503>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
504d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200505d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200506d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
507<<< Finished
508>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
509d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200510d["a"] = Mapping({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200511d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
512<<< Finished
513>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
514d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200515d["a"] = Mapping({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200516d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
517<<< Finished
518>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
519d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
520d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
521<<< Finished
522>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
523d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200524d["a"] = Mapping({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200525d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
526d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
527d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
528<<< Finished
529>>> Testing *Iter* using d["a"] = %s
530d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
531d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError())
532<<< Finished
533>>> Testing ConvertFromPyObject using d["a"] = %s
534d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200535d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200536d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
537d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError())
538d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError())
539<<< Finished
540>> DictionaryUpdate
541>>> kwargs
542>>> iter
543d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
544d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
545>>> Testing *Iter* using d.update(%s)
546d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
547d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
548<<< Finished
549>>> Testing StringToChars using d.update({%s : 1})
550d.update({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200551d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200552d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
553<<< Finished
554>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
555d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200556d.update({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200557d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
558<<< Finished
559>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
560d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200561d.update({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200562d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
563<<< Finished
564>>> Testing *Iter* using d.update({"abc" : %s})
565d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
566d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
567<<< Finished
568>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
569d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200570d.update({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200571d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
572d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
573d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
574<<< Finished
575>>> Testing StringToChars using d.update(Mapping({%s : 1}))
576d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200577d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
579<<< Finished
580>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
581d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200582d.update(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200583d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
584<<< Finished
585>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
586d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200587d.update(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200588d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
589<<< Finished
590>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
591d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
592d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
593<<< Finished
594>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
595d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200596d.update(Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200597d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
598d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
599d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
600<<< Finished
601>>> Testing *Iter* using d.update(%s)
602d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
603d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
604<<< Finished
605>>> Testing ConvertFromPyObject using d.update(%s)
606d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200607d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200608d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
609d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
610d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
611<<< Finished
612>>> Testing StringToChars using d.update(((%s, 0),))
613d.update(((1, 0),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200614d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200615d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
616<<< Finished
617>>> Testing StringToChars using d.update((("a", {%s : 1}),))
618d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200619d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200620d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
621<<< Finished
622>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
623d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200624d.update((("a", {"abc" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200625d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
626<<< Finished
627>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
628d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200629d.update((("a", {"abc" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200630d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
631<<< Finished
632>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
633d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
634d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError())
635<<< Finished
636>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
637d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200638d.update((("a", {"abc" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200639d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
640d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError())
641d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError())
642<<< Finished
643>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
644d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200645d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200646d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
647<<< Finished
648>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
649d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200650d.update((("a", Mapping({"abc" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200651d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
652<<< Finished
653>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
654d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200655d.update((("a", Mapping({"abc" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200656d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
657<<< Finished
658>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
659d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
660d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError())
661<<< Finished
662>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
663d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200664d.update((("a", Mapping({"abc" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200665d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
666d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError())
667d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError())
668<<< Finished
669>>> Testing *Iter* using d.update((("a", %s),))
670d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
671d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError())
672<<< Finished
673>>> Testing ConvertFromPyObject using d.update((("a", %s),))
674d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200675d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200676d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
677d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError())
678d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError())
679<<< Finished
680>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200681d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200682>> DictionaryHasKey
683d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
684> List
685>> ListConstructor
686vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
687vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
688>>> Testing *Iter* using vim.List(%s)
689vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
690vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
691<<< Finished
692>>> Testing StringToChars using vim.List([{%s : 1}])
693vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200694vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200695vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
696<<< Finished
697>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
698vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200699vim.List([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200700vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
701<<< Finished
702>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
703vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200704vim.List([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200705vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
706<<< Finished
707>>> Testing *Iter* using vim.List([{"abc" : %s}])
708vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
709vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
710<<< Finished
711>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
712vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200713vim.List([{"abc" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200714vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
715vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
716vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
717<<< Finished
718>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
719vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200720vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200721vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
722<<< Finished
723>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
724vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200725vim.List([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200726vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
727<<< Finished
728>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
729vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200730vim.List([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200731vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
732<<< Finished
733>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
734vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
735vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
736<<< Finished
737>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
738vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200739vim.List([Mapping({"abc" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200740vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
741vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
742vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
743<<< Finished
744>>> Testing *Iter* using vim.List([%s])
745vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
746vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
747<<< Finished
748>>> Testing ConvertFromPyObject using vim.List([%s])
749vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200750vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200751vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
752vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
753vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
754<<< Finished
755>> ListItem
756l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
757>> ListAssItem
758ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
759l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
760>> ListAssSlice
761ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
762>>> Testing *Iter* using l[:] = %s
763l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError())
764l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError())
765<<< Finished
766>>> Testing StringToChars using l[:] = [{%s : 1}]
767l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200768l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200769l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
770<<< Finished
771>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
772l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200773l[:] = [{"abc" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200774l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
775<<< Finished
776>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
777l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200778l[:] = [{"abc" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200779l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
780<<< Finished
781>>> Testing *Iter* using l[:] = [{"abc" : %s}]
782l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
783l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError())
784<<< Finished
785>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
786l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200787l[:] = [{"abc" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200788l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
789l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError())
790l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError())
791<<< Finished
792>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
793l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200794l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
796<<< Finished
797>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
798l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200799l[:] = [Mapping({"abc" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200800l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
801<<< Finished
802>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
803l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200804l[:] = [Mapping({"abc" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200805l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
806<<< Finished
807>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
808l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
809l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError())
810<<< Finished
811>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
812l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200813l[:] = [Mapping({"abc" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200814l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
815l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError())
816l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError())
817<<< Finished
818>>> Testing *Iter* using l[:] = [%s]
819l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
820l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError())
821<<< Finished
822>>> Testing ConvertFromPyObject using l[:] = [%s]
823l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200824l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200825l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
826l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError())
827l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError())
828<<< Finished
829>> ListConcatInPlace
830>>> Testing *Iter* using l.extend(%s)
831l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
832l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
833<<< Finished
834>>> Testing StringToChars using l.extend([{%s : 1}])
835l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200836l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200837l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
838<<< Finished
839>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
840l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200841l.extend([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200842l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
843<<< Finished
844>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
845l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200846l.extend([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200847l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
848<<< Finished
849>>> Testing *Iter* using l.extend([{"abc" : %s}])
850l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
851l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
852<<< Finished
853>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
854l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200855l.extend([{"abc" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200856l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
857l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
858l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
859<<< Finished
860>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
861l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200862l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200863l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
864<<< Finished
865>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
866l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200867l.extend([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200868l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
869<<< Finished
870>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
871l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200872l.extend([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
874<<< Finished
875>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
876l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
877l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
878<<< Finished
879>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
880l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200881l.extend([Mapping({"abc" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200882l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
883l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
884l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
885<<< Finished
886>>> Testing *Iter* using l.extend([%s])
887l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
888l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
889<<< Finished
890>>> Testing ConvertFromPyObject using l.extend([%s])
891l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200892l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
894l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
895l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
896<<< Finished
897>> ListSetattr
898del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
899l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
900l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
901> Function
902>> FunctionConstructor
903vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function does not exist',))
904vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200905vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200906>> FunctionCall
907>>> Testing StringToChars using f({%s : 1})
908f({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200909f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200910f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
911<<< Finished
912>>> Testing StringToChars using f({"abc" : {%s : 1}})
913f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200914f({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200915f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
916<<< Finished
917>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
918f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200919f({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200920f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
921<<< Finished
922>>> Testing *Iter* using f({"abc" : %s})
923f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
924f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
925<<< Finished
926>>> Testing ConvertFromPyObject using f({"abc" : %s})
927f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200928f({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200929f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
930f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
931f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
932<<< Finished
933>>> Testing StringToChars using f(Mapping({%s : 1}))
934f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200935f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200936f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
937<<< Finished
938>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
939f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200940f(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200941f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
942<<< Finished
943>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
944f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200945f(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
947<<< Finished
948>>> Testing *Iter* using f(Mapping({"abc" : %s}))
949f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
950f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
951<<< Finished
952>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
953f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200954f(Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200955f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
956f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
957f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
958<<< Finished
959>>> Testing *Iter* using f(%s)
960f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
961f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
962<<< Finished
963>>> Testing ConvertFromPyObject using f(%s)
964f(None):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200965f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200966f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
967f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
968f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
969<<< Finished
970>>> Testing StringToChars using fd(self={%s : 1})
971fd(self={1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200972fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200973fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
974<<< Finished
975>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
976fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200977fd(self={"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200978fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
979<<< Finished
980>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
981fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200982fd(self={"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200983fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
984<<< Finished
985>>> Testing *Iter* using fd(self={"abc" : %s})
986fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
987fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
988<<< Finished
989>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
990fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200991fd(self={"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200992fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
993fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
994fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
995<<< Finished
996>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
997fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200998fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200999fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1000<<< Finished
1001>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
1002fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001003fd(self=Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001004fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1005<<< Finished
1006>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
1007fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001008fd(self=Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001009fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
1010<<< Finished
1011>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
1012fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
1013fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
1014<<< Finished
1015>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
1016fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001017fd(self=Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001018fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1019fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
1020fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
1021<<< Finished
1022>>> Testing *Iter* using fd(self=%s)
1023fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
1024fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
1025<<< Finished
1026>>> Testing ConvertFromPyObject using fd(self=%s)
1027fd(self=None):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001028fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1030fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
1031fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
1032<<< Finished
1033>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001034fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001035<<< Finished
1036> TabPage
1037>> TabPageAttr
1038vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1039> TabList
1040>> TabListItem
1041vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1042> Window
1043>> WindowAttr
1044vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1045>> WindowSetattr
1046vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001047vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001048vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1049vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1050vim.current.window.width = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1051vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1052> WinList
1053>> WinListItem
1054vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1055> Buffer
1056>> StringToLine (indirect)
1057vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1058>> SetBufferLine (indirect)
1059vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1060>> SetBufferLines (indirect)
1061vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1062vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1063>> InsertBufferLines (indirect)
1064vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1065vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1066vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1067>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001068vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001069>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001070vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001071>> BufferAttr
1072vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1073>> BufferSetattr
1074vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',))
1075vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1076>> BufferMark
1077vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',))
1078vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
1079vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1080>> BufferRange
1081vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1082> BufMap
1083>> BufMapItem
1084vim.buffers[None]:(<class 'TypeError'>, TypeError('key must be integer',))
1085vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
1086> Current
1087>> CurrentGetattr
1088vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1089>> CurrentSetattr
1090vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1091vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object',))
1092vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
1093vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
1094vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
Bram Moolenaara9f22202013-06-11 18:48:21 +020010953,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001096before
1097after
Bram Moolenaar8600e402013-05-30 13:28:41 +02001098vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1099Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1100vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1101vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1102vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1103vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))