blob: 569d13f1efc28a4151d20cd5cc98d8fe57aaa326 [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}
29(b'', -1)
30None
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 Moolenaar8600e402013-05-30 13:28:41 +0200421> Output
422>> OutputSetattr
423del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",))
424sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('softspace must be an integer',))
425sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute',))
426>> OutputWrite
427sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
428>> OutputWriteLines
429sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
430sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError('writelines() requires list of strings',))
431>>> Testing *Iter* using sys.stdout.writelines(%s)
432sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
433sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
434<<< Finished
435> VimCommand
436vim.command(1):(<class 'TypeError'>, TypeError('must be str, not int',))
437> VimToPython
438> VimEval
439vim.eval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
440> VimEvalPy
441vim.bindeval(1):(<class 'TypeError'>, TypeError('must be str, not int',))
442> VimStrwidth
443vim.strwidth(1):(<class 'TypeError'>, TypeError('must be str, not int',))
444> Dictionary
445>> DictionaryConstructor
446vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2',))
447>> DictionarySetattr
448del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
449d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
450vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',))
451d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
452d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
453>> _DictionaryItem
454d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
455>>> Testing StringToChars using d.get(%s)
456d.get(1):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200457d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200458d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',))
459<<< Finished
460d.pop("a"):(<class 'KeyError'>, KeyError('a',))
461dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
462>> DictionaryIterNext
463for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',))
464>> DictionaryAssItem
465dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
466>>> Testing StringToChars using d[%s] = 1
467d[1] = 1:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200468d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200469d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',))
470<<< Finished
471>>> Testing StringToChars using d["a"] = {%s : 1}
472d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200473d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200474d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
475<<< Finished
476>>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
477d["a"] = {"abc" : {1 : 1}}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200478d["a"] = {"abc" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200479d["a"] = {"abc" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
480<<< Finished
481>>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
482d["a"] = {"abc" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200483d["a"] = {"abc" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200484d["a"] = {"abc" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',))
485<<< Finished
486>>> Testing *Iter* using d["a"] = {"abc" : %s}
487d["a"] = {"abc" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
488d["a"] = {"abc" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError())
489<<< Finished
490>>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
491d["a"] = {"abc" : None}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
492d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
493d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError())
494d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError())
495<<< Finished
496>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
497d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200498d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200499d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
500<<< Finished
501>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
502d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200503d["a"] = Mapping({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200504d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
505<<< Finished
506>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
507d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200508d["a"] = Mapping({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200509d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
510<<< Finished
511>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
512d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
513d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
514<<< Finished
515>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
516d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
517d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
518d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
519d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
520<<< Finished
521>>> Testing *Iter* using d["a"] = %s
522d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
523d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError())
524<<< Finished
525>>> Testing ConvertFromPyObject using d["a"] = %s
526d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
527d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
528d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError())
529d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError())
530<<< Finished
531>> DictionaryUpdate
532>>> kwargs
533>>> iter
534d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
535d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
536>>> Testing *Iter* using d.update(%s)
537d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
538d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
539<<< Finished
540>>> Testing StringToChars using d.update({%s : 1})
541d.update({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200542d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200543d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
544<<< Finished
545>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
546d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200547d.update({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200548d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
549<<< Finished
550>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
551d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200552d.update({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200553d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
554<<< Finished
555>>> Testing *Iter* using d.update({"abc" : %s})
556d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
557d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
558<<< Finished
559>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
560d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
561d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
562d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
563d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
564<<< Finished
565>>> Testing StringToChars using d.update(Mapping({%s : 1}))
566d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200567d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200568d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
569<<< Finished
570>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
571d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200572d.update(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200573d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
574<<< Finished
575>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
576d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200577d.update(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
579<<< Finished
580>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
581d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
582d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
583<<< Finished
584>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
585d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
586d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
587d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
588d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
589<<< Finished
590>>> Testing *Iter* using d.update(%s)
591d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
592d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
593<<< Finished
594>>> Testing ConvertFromPyObject using d.update(%s)
595d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))
596d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
597d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
598d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
599<<< Finished
600>>> Testing StringToChars using d.update(((%s, 0),))
601d.update(((1, 0),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200602d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200603d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
604<<< Finished
605>>> Testing StringToChars using d.update((("a", {%s : 1}),))
606d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200607d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200608d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
609<<< Finished
610>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
611d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200612d.update((("a", {"abc" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200613d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
614<<< Finished
615>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
616d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200617d.update((("a", {"abc" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200618d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
619<<< Finished
620>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
621d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
622d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError())
623<<< Finished
624>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
625d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
626d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
627d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError())
628d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError())
629<<< Finished
630>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
631d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200632d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200633d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
634<<< Finished
635>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
636d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200637d.update((("a", Mapping({"abc" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200638d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
639<<< Finished
640>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
641d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200642d.update((("a", Mapping({"abc" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200643d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',))
644<<< Finished
645>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
646d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
647d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError())
648<<< Finished
649>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
650d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
651d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
652d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError())
653d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError())
654<<< Finished
655>>> Testing *Iter* using d.update((("a", %s),))
656d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
657d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError())
658<<< Finished
659>>> Testing ConvertFromPyObject using d.update((("a", %s),))
660d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
661d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
662d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError())
663d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError())
664<<< Finished
665>> DictionaryPopItem
666d.popitem(1, 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',))
667>> DictionaryHasKey
668d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
669> List
670>> ListConstructor
671vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
672vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',))
673>>> Testing *Iter* using vim.List(%s)
674vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
675vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
676<<< Finished
677>>> Testing StringToChars using vim.List([{%s : 1}])
678vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200679vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200680vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
681<<< Finished
682>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
683vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200684vim.List([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
686<<< Finished
687>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
688vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200689vim.List([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200690vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
691<<< Finished
692>>> Testing *Iter* using vim.List([{"abc" : %s}])
693vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
694vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
695<<< Finished
696>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
697vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
698vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
699vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
700vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
701<<< Finished
702>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
703vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200704vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200705vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
706<<< Finished
707>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
708vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200709vim.List([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200710vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
711<<< Finished
712>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
713vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200714vim.List([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200715vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
716<<< Finished
717>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
718vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
719vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
720<<< Finished
721>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
722vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
723vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
724vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
725vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
726<<< Finished
727>>> Testing *Iter* using vim.List([%s])
728vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
729vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
730<<< Finished
731>>> Testing ConvertFromPyObject using vim.List([%s])
732vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
733vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
734vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
735vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
736<<< Finished
737>> ListItem
738l[1000]:(<class 'IndexError'>, IndexError('list index out of range',))
739>> ListAssItem
740ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
741l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',))
742>> ListAssSlice
743ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
744>>> Testing *Iter* using l[:] = %s
745l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError())
746l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError())
747<<< Finished
748>>> Testing StringToChars using l[:] = [{%s : 1}]
749l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200750l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200751l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
752<<< Finished
753>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
754l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200755l[:] = [{"abc" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
757<<< Finished
758>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
759l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200760l[:] = [{"abc" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200761l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
762<<< Finished
763>>> Testing *Iter* using l[:] = [{"abc" : %s}]
764l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
765l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError())
766<<< Finished
767>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
768l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
769l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
770l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError())
771l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError())
772<<< Finished
773>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
774l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200775l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200776l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
777<<< Finished
778>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
779l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200780l[:] = [Mapping({"abc" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200781l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
782<<< Finished
783>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
784l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200785l[:] = [Mapping({"abc" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200786l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',))
787<<< Finished
788>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
789l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
790l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError())
791<<< Finished
792>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
793l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
794l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
795l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError())
796l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError())
797<<< Finished
798>>> Testing *Iter* using l[:] = [%s]
799l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
800l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError())
801<<< Finished
802>>> Testing ConvertFromPyObject using l[:] = [%s]
803l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
804l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',))
805l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError())
806l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError())
807<<< Finished
808>> ListConcatInPlace
809>>> Testing *Iter* using l.extend(%s)
810l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError())
811l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
812<<< Finished
813>>> Testing StringToChars using l.extend([{%s : 1}])
814l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200815l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200816l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
817<<< Finished
818>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
819l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200820l.extend([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200821l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
822<<< Finished
823>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
824l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200825l.extend([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
827<<< Finished
828>>> Testing *Iter* using l.extend([{"abc" : %s}])
829l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
830l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError())
831<<< Finished
832>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
833l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
834l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
835l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError())
836l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError())
837<<< Finished
838>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
839l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200840l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200841l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
842<<< Finished
843>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
844l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200845l.extend([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200846l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
847<<< Finished
848>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
849l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200850l.extend([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200851l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',))
852<<< Finished
853>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
854l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
855l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError())
856<<< Finished
857>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
858l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
859l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
860l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError())
861l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError())
862<<< Finished
863>>> Testing *Iter* using l.extend([%s])
864l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
865l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError())
866<<< Finished
867>>> Testing ConvertFromPyObject using l.extend([%s])
868l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
869l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
870l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError())
871l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError())
872<<< Finished
873>> ListSetattr
874del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',))
875l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError())
876l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',))
877> Function
878>> FunctionConstructor
879vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function does not exist',))
880vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200881vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200882>> FunctionCall
883>>> Testing StringToChars using f({%s : 1})
884f({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200885f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200886f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
887<<< Finished
888>>> Testing StringToChars using f({"abc" : {%s : 1}})
889f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200890f({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200891f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
892<<< Finished
893>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
894f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200895f({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200896f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
897<<< Finished
898>>> Testing *Iter* using f({"abc" : %s})
899f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
900f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
901<<< Finished
902>>> Testing ConvertFromPyObject using f({"abc" : %s})
903f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
904f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
905f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
906f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
907<<< Finished
908>>> Testing StringToChars using f(Mapping({%s : 1}))
909f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200910f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200911f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
912<<< Finished
913>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
914f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200915f(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200916f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
917<<< Finished
918>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
919f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200920f(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200921f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
922<<< Finished
923>>> Testing *Iter* using f(Mapping({"abc" : %s}))
924f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
925f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
926<<< Finished
927>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
928f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
929f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
930f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
931f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
932<<< Finished
933>>> Testing *Iter* using f(%s)
934f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
935f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError())
936<<< Finished
937>>> Testing ConvertFromPyObject using f(%s)
938f(None):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
939f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
940f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
941f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
942<<< Finished
943>>> Testing StringToChars using fd(self={%s : 1})
944fd(self={1 : 1}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200945fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
947<<< Finished
948>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
949fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200950fd(self={"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200951fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
952<<< Finished
953>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
954fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200955fd(self={"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200956fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
957<<< Finished
958>>> Testing *Iter* using fd(self={"abc" : %s})
959fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
960fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError())
961<<< Finished
962>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
963fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
964fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
965fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError())
966fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError())
967<<< Finished
968>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
969fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200970fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200971fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
972<<< Finished
973>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
974fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200975fd(self=Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200976fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
977<<< Finished
978>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
979fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +0200980fd(self=Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200981fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
982<<< Finished
983>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
984fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
985fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError())
986<<< Finished
987>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
988fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',))
989fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
990fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError())
991fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError())
992<<< Finished
993>>> Testing *Iter* using fd(self=%s)
994fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
995fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
996<<< Finished
997>>> Testing ConvertFromPyObject using fd(self=%s)
998fd(self=None):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',))
999fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
1000fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError())
1001fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError())
1002<<< Finished
1003>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001004fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001005<<< Finished
1006> TabPage
1007>> TabPageAttr
1008vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",))
1009> TabList
1010>> TabListItem
1011vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',))
1012> Window
1013>> WindowAttr
1014vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",))
1015>> WindowSetattr
1016vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute',))
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001017vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001018vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1019vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1020vim.current.window.width = "abc":(<class 'TypeError'>, TypeError('an integer is required',))
1021vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',))
1022> WinList
1023>> WinListItem
1024vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',))
1025> Buffer
1026>> StringToLine (indirect)
1027vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1028>> SetBufferLine (indirect)
1029vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1030>> SetBufferLines (indirect)
1031vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1032vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1033>> InsertBufferLines (indirect)
1034vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1035vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1036vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1037>> RBItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001038vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039>> RBAsItem
Bram Moolenaar96c7dfd2013-05-31 18:46:11 +02001040vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001041>> BufferAttr
1042vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",))
1043>> BufferSetattr
1044vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',))
1045vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1046>> BufferMark
1047vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',))
1048vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',))
1049vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1050>> BufferRange
1051vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1052> BufMap
1053>> BufMapItem
1054vim.buffers[None]:(<class 'TypeError'>, TypeError('key must be integer',))
1055vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,))
1056> Current
1057>> CurrentGetattr
1058vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",))
1059>> CurrentSetattr
1060vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',))
1061vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object',))
1062vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',))
1063vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',))
1064vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',))
1065vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1066Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1067vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1068vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1069vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1070vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))