blob: 49ad4e4cd85dd3f76160de1f272736a0418823ae [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",))
436sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError('writelines() requires list of strings',))
437>>> 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',))
498d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
499d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError())
500d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError())
501<<< Finished
502>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
503d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200504d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200505d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
506<<< Finished
507>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
508d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200509d["a"] = Mapping({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200510d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
511<<< Finished
512>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
513d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200514d["a"] = Mapping({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200515d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
516<<< Finished
517>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
518d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
519d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
520<<< Finished
521>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
522d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
523d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
524d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
525d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
526<<< Finished
527>>> Testing *Iter* using d["a"] = %s
528d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
529d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError())
530<<< Finished
531>>> Testing ConvertFromPyObject using d["a"] = %s
532d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
533d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
534d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError())
535d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError())
536<<< Finished
537>> DictionaryUpdate
538>>> kwargs
539>>> iter
540d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
541d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
542>>> Testing *Iter* using d.update(%s)
543d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
544d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
545<<< Finished
546>>> Testing StringToChars using d.update({%s : 1})
547d.update({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200548d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200549d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
550<<< Finished
551>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
552d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200553d.update({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200554d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
555<<< Finished
556>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
557d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200558d.update({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200559d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
560<<< Finished
561>>> Testing *Iter* using d.update({"abc" : %s})
562d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
563d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
564<<< Finished
565>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
566d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
567d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
568d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
569d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
570<<< Finished
571>>> Testing StringToChars using d.update(Mapping({%s : 1}))
572d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200573d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
575<<< Finished
576>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
577d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200578d.update(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200579d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
580<<< Finished
581>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
582d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200583d.update(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200584d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
585<<< Finished
586>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
587d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
588d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
589<<< Finished
590>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
591d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
592d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
593d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
594d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
595<<< Finished
596>>> Testing *Iter* using d.update(%s)
597d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
598d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
599<<< Finished
600>>> Testing ConvertFromPyObject using d.update(%s)
601d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
602d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
603d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
604d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
605<<< Finished
606>>> Testing StringToChars using d.update(((%s, 0),))
607d.update(((1, 0),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200608d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
610<<< Finished
611>>> Testing StringToChars using d.update((("a", {%s : 1}),))
612d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200613d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200614d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
615<<< Finished
616>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
617d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200618d.update((("a", {"abc" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200619d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
620<<< Finished
621>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
622d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200623d.update((("a", {"abc" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200624d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
625<<< Finished
626>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
627d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
628d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError())
629<<< Finished
630>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
631d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
632d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
633d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError())
634d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError())
635<<< Finished
636>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
637d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200638d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200639d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
640<<< Finished
641>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
642d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200643d.update((("a", Mapping({"abc" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200644d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
645<<< Finished
646>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
647d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200648d.update((("a", Mapping({"abc" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200649d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
650<<< Finished
651>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
652d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
653d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError())
654<<< Finished
655>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
656d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
657d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
658d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError())
659d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError())
660<<< Finished
661>>> Testing *Iter* using d.update((("a", %s),))
662d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
663d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError())
664<<< Finished
665>>> Testing ConvertFromPyObject using d.update((("a", %s),))
666d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
667d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
668d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError())
669d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError())
670<<< Finished
671>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200672d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200673>> DictionaryHasKey
674d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
675> List
676>> ListConstructor
677vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
678vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
679>>> Testing *Iter* using vim.List(%s)
680vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
681vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
682<<< Finished
683>>> Testing StringToChars using vim.List([{%s : 1}])
684vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200685vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200686vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
687<<< Finished
688>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
689vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200690vim.List([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
692<<< Finished
693>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
694vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200695vim.List([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200696vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
697<<< Finished
698>>> Testing *Iter* using vim.List([{"abc" : %s}])
699vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
700vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
701<<< Finished
702>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
703vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
704vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
705vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
706vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
707<<< Finished
708>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
709vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200710vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200711vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
712<<< Finished
713>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
714vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200715vim.List([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
717<<< Finished
718>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
719vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200720vim.List([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200721vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
722<<< Finished
723>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
724vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
725vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
726<<< Finished
727>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
728vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
729vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
730vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
731vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
732<<< Finished
733>>> Testing *Iter* using vim.List([%s])
734vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
735vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
736<<< Finished
737>>> Testing ConvertFromPyObject using vim.List([%s])
738vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
739vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
740vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
741vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
742<<< Finished
743>> ListItem
744l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
745>> ListAssItem
746ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
747l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
748>> ListAssSlice
749ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
750>>> Testing *Iter* using l[:] = %s
751l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError())
752l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError())
753<<< Finished
754>>> Testing StringToChars using l[:] = [{%s : 1}]
755l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200756l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200757l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
758<<< Finished
759>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
760l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200761l[:] = [{"abc" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200762l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
763<<< Finished
764>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
765l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200766l[:] = [{"abc" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200767l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
768<<< Finished
769>>> Testing *Iter* using l[:] = [{"abc" : %s}]
770l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
771l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError())
772<<< Finished
773>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
774l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
775l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
776l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError())
777l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError())
778<<< Finished
779>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
780l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200781l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200782l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
783<<< Finished
784>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
785l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200786l[:] = [Mapping({"abc" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
788<<< Finished
789>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
790l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200791l[:] = [Mapping({"abc" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200792l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
793<<< Finished
794>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
795l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
796l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError())
797<<< Finished
798>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
799l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
800l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
801l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError())
802l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError())
803<<< Finished
804>>> Testing *Iter* using l[:] = [%s]
805l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
806l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError())
807<<< Finished
808>>> Testing ConvertFromPyObject using l[:] = [%s]
809l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
810l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
811l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError())
812l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError())
813<<< Finished
814>> ListConcatInPlace
815>>> Testing *Iter* using l.extend(%s)
816l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
817l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
818<<< Finished
819>>> Testing StringToChars using l.extend([{%s : 1}])
820l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200821l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200822l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
823<<< Finished
824>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
825l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200826l.extend([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200827l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
828<<< Finished
829>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
830l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200831l.extend([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
833<<< Finished
834>>> Testing *Iter* using l.extend([{"abc" : %s}])
835l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
836l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
837<<< Finished
838>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
839l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
840l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
841l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
842l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
843<<< Finished
844>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
845l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200846l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200847l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
848<<< Finished
849>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
850l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200851l.extend([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200852l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
853<<< Finished
854>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
855l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200856l.extend([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200857l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
858<<< Finished
859>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
860l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
861l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
862<<< Finished
863>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
864l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
865l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
866l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
867l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
868<<< Finished
869>>> Testing *Iter* using l.extend([%s])
870l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
871l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
872<<< Finished
873>>> Testing ConvertFromPyObject using l.extend([%s])
874l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
875l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
876l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
877l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
878<<< Finished
879>> ListSetattr
880del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
881l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
882l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
883> Function
884>> FunctionConstructor
885vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function does not exist',))
886vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200887vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200888>> FunctionCall
889>>> Testing StringToChars using f({%s : 1})
890f({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200891f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200892f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
893<<< Finished
894>>> Testing StringToChars using f({"abc" : {%s : 1}})
895f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200896f({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
898<<< Finished
899>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
900f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200901f({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200902f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
903<<< Finished
904>>> Testing *Iter* using f({"abc" : %s})
905f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
906f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
907<<< Finished
908>>> Testing ConvertFromPyObject using f({"abc" : %s})
909f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
910f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
911f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
912f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
913<<< Finished
914>>> Testing StringToChars using f(Mapping({%s : 1}))
915f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200916f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200917f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
918<<< Finished
919>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
920f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200921f(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200922f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
923<<< Finished
924>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
925f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200926f(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200927f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
928<<< Finished
929>>> Testing *Iter* using f(Mapping({"abc" : %s}))
930f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
931f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
932<<< Finished
933>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
934f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
935f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
936f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
937f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
938<<< Finished
939>>> Testing *Iter* using f(%s)
940f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
941f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
942<<< Finished
943>>> Testing ConvertFromPyObject using f(%s)
944f(None):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
945f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
946f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
947f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
948<<< Finished
949>>> Testing StringToChars using fd(self={%s : 1})
950fd(self={1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200951fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200952fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
953<<< Finished
954>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
955fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200956fd(self={"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200957fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
958<<< Finished
959>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
960fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200961fd(self={"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200962fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
963<<< Finished
964>>> Testing *Iter* using fd(self={"abc" : %s})
965fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
966fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
967<<< Finished
968>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
969fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
970fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
971fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
972fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
973<<< Finished
974>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
975fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200976fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200977fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
978<<< Finished
979>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
980fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200981fd(self=Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200982fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
983<<< Finished
984>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
985fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200986fd(self=Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200987fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
988<<< Finished
989>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
990fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
991fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
992<<< Finished
993>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
994fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
995fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
996fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
997fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
998<<< Finished
999>>> Testing *Iter* using fd(self=%s)
1000fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
1001fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
1002<<< Finished
1003>>> Testing ConvertFromPyObject using fd(self=%s)
1004fd(self=None):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
1005fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1006fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
1007fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
1008<<< Finished
1009>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001010fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001011<<< Finished
1012> TabPage
1013>> TabPageAttr
1014vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1015> TabList
1016>> TabListItem
1017vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1018> Window
1019>> WindowAttr
1020vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1021>> WindowSetattr
1022vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001023vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001024vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1025vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1026vim.current.window.width = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1027vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1028> WinList
1029>> WinListItem
1030vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1031> Buffer
1032>> StringToLine (indirect)
1033vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1034>> SetBufferLine (indirect)
1035vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1036>> SetBufferLines (indirect)
1037vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1038vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1039>> InsertBufferLines (indirect)
1040vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1041vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1042vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1043>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001044vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001045>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001046vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001047>> BufferAttr
1048vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1049>> BufferSetattr
1050vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',))
1051vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1052>> BufferMark
1053vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',))
1054vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
1055vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1056>> BufferRange
1057vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1058> BufMap
1059>> BufMapItem
1060vim.buffers[None]:(<class 'TypeError'>, TypeError('key must be integer',))
1061vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
1062> Current
1063>> CurrentGetattr
1064vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1065>> CurrentSetattr
1066vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1067vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object',))
1068vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
1069vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
1070vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1071vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1072Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1073vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1074vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1075vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1076vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))