blob: 5ebf108d1f538dd897998b378a97f06a52d6d9cb [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['-1', '0', '1', 'b', 'f']
9['asd', -1L, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >]
10[('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('b', <vim.list object at >), ('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['0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029('0', -1L)
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(python):E725:
57Vim(python):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 Moolenaarc11073c2012-09-05 19:17:42 +020082"\0": Vim(let):E859:
83{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010084undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +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 Moolenaar24b11fb2013-04-05 19:32:36 +020088[0, 1, 2, 3]
89[2, 3, 4, 5]
90[0, 1]
91[4, 5]
92[2, 3]
93[]
94[2, 3]
95[]
96[0, 1, 2, 3, 4, 5]
97[0, 1, 2, 3, 4, 5]
98[0, 1, 2, 3, 4, 5]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020099Abc
100bac
101def
102bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200103jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200104>>> paste
105 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200106 p/wopts1! KeyError
107 inv: 2! KeyError
108 wopts1! KeyError
109 wopts2! KeyError
110 wopts3! KeyError
111 p/bopts1! KeyError
112 inv: 2! KeyError
113 bopts1! KeyError
114 bopts2! KeyError
115 bopts3! KeyError
116 G: 1
117 W: 1:1 2:1 3:1 4:1
118 B: 1:1 2:1 3:1 4:1
119 del wopts3! KeyError
120 del bopts3! KeyError
121 G: 1
122 W: 1:1 2:1 3:1 4:1
123 B: 1:1 2:1 3:1 4:1
124>>> previewheight
125 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200126 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200127 p/wopts1! KeyError
128 inv: 'a'! KeyError
129 wopts1! KeyError
130 wopts2! KeyError
131 wopts3! KeyError
132 p/bopts1! KeyError
133 inv: 'a'! KeyError
134 bopts1! KeyError
135 bopts2! KeyError
136 bopts3! KeyError
137 G: 5
138 W: 1:5 2:5 3:5 4:5
139 B: 1:5 2:5 3:5 4:5
140 del wopts3! KeyError
141 del bopts3! KeyError
142 G: 5
143 W: 1:5 2:5 3:5 4:5
144 B: 1:5 2:5 3:5 4:5
145>>> operatorfunc
146 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200147 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200148 p/wopts1! KeyError
149 inv: 2! KeyError
150 wopts1! KeyError
151 wopts2! KeyError
152 wopts3! KeyError
153 p/bopts1! KeyError
154 inv: 2! KeyError
155 bopts1! KeyError
156 bopts2! KeyError
157 bopts3! KeyError
158 G: 'A'
159 W: 1:'A' 2:'A' 3:'A' 4:'A'
160 B: 1:'A' 2:'A' 3:'A' 4:'A'
161 del wopts3! KeyError
162 del bopts3! KeyError
163 G: 'A'
164 W: 1:'A' 2:'A' 3:'A' 4:'A'
165 B: 1:'A' 2:'A' 3:'A' 4:'A'
166>>> number
167 p/gopts1! KeyError
168 inv: 0! KeyError
169 gopts1! KeyError
170 p/wopts1: False
171 p/bopts1! KeyError
172 inv: 0! KeyError
173 bopts1! KeyError
174 bopts2! KeyError
175 bopts3! KeyError
176 G: 0
177 W: 1:1 2:1 3:0 4:0
178 B: 1:1 2:1 3:0 4:0
179 del wopts3! ValueError
180 del bopts3! KeyError
181 G: 0
182 W: 1:1 2:1 3:0 4:0
183 B: 1:1 2:1 3:0 4:0
184>>> numberwidth
185 p/gopts1! KeyError
186 inv: -100! KeyError
187 gopts1! KeyError
188 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200189 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200190 p/bopts1! KeyError
191 inv: -100! KeyError
192 bopts1! KeyError
193 bopts2! KeyError
194 bopts3! KeyError
195 G: 8
196 W: 1:3 2:5 3:2 4:8
197 B: 1:3 2:5 3:2 4:8
198 del wopts3! ValueError
199 del bopts3! KeyError
200 G: 8
201 W: 1:3 2:5 3:2 4:8
202 B: 1:3 2:5 3:2 4:8
203>>> colorcolumn
204 p/gopts1! KeyError
205 inv: 'abc'! KeyError
206 gopts1! KeyError
207 p/wopts1: ''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200208 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200209 p/bopts1! KeyError
210 inv: 'abc'! KeyError
211 bopts1! KeyError
212 bopts2! KeyError
213 bopts3! KeyError
214 G: ''
215 W: 1:'+2' 2:'+3' 3:'+1' 4:''
216 B: 1:'+2' 2:'+3' 3:'+1' 4:''
217 del wopts3! ValueError
218 del bopts3! KeyError
219 G: ''
220 W: 1:'+2' 2:'+3' 3:'+1' 4:''
221 B: 1:'+2' 2:'+3' 3:'+1' 4:''
222>>> statusline
223 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200224 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200225 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200226 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200227 p/bopts1! KeyError
228 inv: 0! KeyError
229 bopts1! KeyError
230 bopts2! KeyError
231 bopts3! KeyError
232 G: '1'
233 W: 1:'2' 2:'4' 3:'1' 4:'1'
234 B: 1:'2' 2:'4' 3:'1' 4:'1'
235 del bopts3! KeyError
236 G: '1'
237 W: 1:'2' 2:'1' 3:'1' 4:'1'
238 B: 1:'2' 2:'1' 3:'1' 4:'1'
239>>> autoindent
240 p/gopts1! KeyError
241 inv: 2! KeyError
242 gopts1! KeyError
243 p/wopts1! KeyError
244 inv: 2! KeyError
245 wopts1! KeyError
246 wopts2! KeyError
247 wopts3! KeyError
248 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200249 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200250 W: 1:0 2:1 3:0 4:1
251 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 del wopts3! KeyError
253 del bopts3! ValueError
254 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200255 W: 1:0 2:1 3:0 4:1
256 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200257>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200258 p/gopts1! KeyError
259 inv: 3! KeyError
260 gopts1! KeyError
261 p/wopts1! KeyError
262 inv: 3! KeyError
263 wopts1! KeyError
264 wopts2! KeyError
265 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200266 p/bopts1: 8
267 G: 8
268 W: 1:0 2:2 3:8 4:1
269 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200270 del wopts3! KeyError
271 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200272 G: 8
273 W: 1:0 2:2 3:8 4:1
274 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200275>>> omnifunc
276 p/gopts1! KeyError
277 inv: 1! KeyError
278 gopts1! KeyError
279 p/wopts1! KeyError
280 inv: 1! KeyError
281 wopts1! KeyError
282 wopts2! KeyError
283 wopts3! KeyError
284 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200285 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200286 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200287 W: 1:'A' 2:'B' 3:'' 4:'C'
288 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 del wopts3! KeyError
290 del bopts3! ValueError
291 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200292 W: 1:'A' 2:'B' 3:'' 4:'C'
293 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200294>>> preserveindent
295 p/gopts1! KeyError
296 inv: 2! KeyError
297 gopts1! KeyError
298 p/wopts1! KeyError
299 inv: 2! KeyError
300 wopts1! KeyError
301 wopts2! KeyError
302 wopts3! KeyError
303 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200304 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200305 W: 1:0 2:1 3:0 4:1
306 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200307 del wopts3! KeyError
308 del bopts3! ValueError
309 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200310 W: 1:0 2:1 3:0 4:1
311 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200312>>> path
Bram Moolenaar04188112013-06-01 20:32:12 +0200313 p/gopts1: '.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200314 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200315 p/wopts1! KeyError
316 inv: 0! KeyError
317 wopts1! KeyError
318 wopts2! KeyError
319 wopts3! KeyError
320 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200321 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200323 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
324 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200325 del wopts3! KeyError
326 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200327 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
328 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200329First line
330First line
331def
332First line
333Second line
334Third line
335(7, 2)
336<buffer test86.in><buffer >
337baz
338bar
339Second line
340Third line
341foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003421:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003431:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200344testdir/foo
3455:BufFilePre:5
3465:BufFilePost:5
347testdir/bar
3481:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003491:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200350testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200351valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200352i:<buffer test86.in>
353i2:<buffer test86.in>
354i:<buffer a>
355i3:<buffer test86.in>
3561:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003578:<buffer a>=<buffer a>
3589:<buffer b>=<buffer b>
35910:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003604
361i4:<buffer test86.in>
362i4:<buffer test86.in>
363StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200364Number of tabs: 4
365Current tab pages:
366 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
367 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200368 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200369 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
370 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200371 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200372 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
373 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200374 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
375 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200376 <tabpage 3>(4): 4 windows, current is <window 0>
377 Windows:
378 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
379 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
380 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
381 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
382Number of windows in current tab page: 4
383Current tab page: <tabpage 3>
384Current window: <window 0>: <window 0> is <window 0>
385Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
386ValueError at assigning foreign tab window
387Type error at assigning None to vim.current.window
388Type error at assigning None to vim.current.tabpage
389Type error at assigning None to vim.current.buffer
390Current tab page: <tabpage 2>
391Current window: <window 0>
392Current buffer: <buffer test86.in>
393Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200394w.valid: [True, False]
395t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200396vim.vars:Dictionary:True
397vim.options:Options:True
398vim.bindeval("{}"):Dictionary:True
399vim.bindeval("[]"):List:True
400vim.bindeval("function('tr')"):Function:True
401vim.current.buffer:Buffer:True
402vim.current.range:Range:True
403vim.current.window:Window:True
404vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200405current:__dir__,__members__,buffer,line,range,tabpage,window
406buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
407window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
408tabpage:__dir__,__members__,number,valid,vars,window,windows
409range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200410dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200411list:__dir__,__members__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200412function:__dir__,__members__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200413output:__dir__,__members__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200414{}
415{'a': 1}
416{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200417[]
418['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200420'
421abcdef
422line :
423abcdef
424abc
425line :
426abc'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200427['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200428['a', 'a']
429['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200430[2, 2]
431[2, 2]
Bram Moolenaarf4258302013-06-02 18:20:17 +0200432testdir
433test86.in
434src
435testdir/test86.in
436testdir
437test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200438> Output
439>> OutputSetattr
440del sys.stdout.softspace:(<type 'exceptions.AttributeError'>, AttributeError("can't delete OutputObject attributes",))
441sys.stdout.softspace = []:(<type 'exceptions.TypeError'>, TypeError('softspace must be an integer',))
442sys.stdout.attr = None:(<type 'exceptions.AttributeError'>, AttributeError('invalid attribute',))
443>> OutputWrite
444sys.stdout.write(None):(<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need string or buffer, NoneType found',))
445>> OutputWriteLines
446sys.stdout.writelines(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
447sys.stdout.writelines([1]):(<type 'exceptions.TypeError'>, TypeError('writelines() requires list of strings',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200448> VimCommand
449vim.command(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
450> VimToPython
451> VimEval
452vim.eval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
453> VimEvalPy
454vim.bindeval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
455> VimStrwidth
456vim.strwidth(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
457> Dictionary
458>> DictionaryConstructor
459vim.Dictionary("abc"):(<type 'exceptions.ValueError'>, ValueError('expected sequence element of size 2',))
460>> DictionarySetattr
461del d.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
462d.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
463vim.vvars.locked = False:(<type 'exceptions.TypeError'>, TypeError('cannot modify fixed dictionary',))
464d.scope = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
465d.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
466>> _DictionaryItem
467d.get("a", 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
468>>> Testing StringToChars using d.get(%s)
469d.get(1):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
470d.get(u"\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
471d.get("\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
472<<< Finished
473d.pop("a"):(<type 'exceptions.KeyError'>, KeyError('a',))
474dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
475>> DictionaryIterNext
476for i in ned: ned["a"] = 1:(<type 'exceptions.RuntimeError'>, RuntimeError('hashtab changed during iteration',))
477>> DictionaryAssItem
478dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
479>>> Testing StringToChars using d[%s] = 1
480d[1] = 1:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
481d[u"\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
482d["\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
483<<< Finished
484>>> Testing StringToChars using d["a"] = {%s : 1}
485d["a"] = {1 : 1}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
486d["a"] = {u"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
487d["a"] = {"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
488<<< Finished
489>>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
490d["a"] = {"abc" : {1 : 1}}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
491d["a"] = {"abc" : {u"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
492d["a"] = {"abc" : {"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
493<<< Finished
494>>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
495d["a"] = {"abc" : Mapping({1 : 1})}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
496d["a"] = {"abc" : Mapping({u"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
497d["a"] = {"abc" : Mapping({"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
498<<< Finished
499>>> Testing *Iter* using d["a"] = {"abc" : %s}
500d["a"] = {"abc" : FailingIter()}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
501d["a"] = {"abc" : FailingIterNext()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
502<<< Finished
503>>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
504d["a"] = {"abc" : None}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
505d["a"] = {"abc" : {"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
506d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
507d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
508<<< Finished
509>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
510d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
511d["a"] = Mapping({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
512d["a"] = Mapping({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
513<<< Finished
514>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
515d["a"] = Mapping({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
516d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
517d["a"] = Mapping({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
518<<< Finished
519>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
520d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
521d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
522d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
523<<< Finished
524>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
525d["a"] = Mapping({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
526d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
527<<< Finished
528>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
529d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
530d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
531d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
532d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
533<<< Finished
534>>> Testing *Iter* using d["a"] = %s
535d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
536d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
537<<< Finished
538>>> Testing ConvertFromPyObject using d["a"] = %s
539d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
540d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
541d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
542d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
543<<< Finished
544>> DictionaryUpdate
545>>> kwargs
546>>> iter
547d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
548d.update([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Bram Moolenaar8600e402013-05-30 13:28:41 +0200549>>> Testing StringToChars using d.update({%s : 1})
550d.update({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
551d.update({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
552d.update({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
553<<< Finished
554>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
555d.update({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
556d.update({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
557d.update({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
558<<< Finished
559>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
560d.update({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
561d.update({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
562d.update({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
563<<< Finished
564>>> Testing *Iter* using d.update({"abc" : %s})
565d.update({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
566d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
567<<< Finished
568>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
569d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
570d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
571d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
572d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
573<<< Finished
574>>> Testing StringToChars using d.update(Mapping({%s : 1}))
575d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
576d.update(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
577d.update(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
578<<< Finished
579>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
580d.update(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
581d.update(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
582d.update(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
583<<< Finished
584>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
585d.update(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
586d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
587d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
588<<< Finished
589>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
590d.update(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
591d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
592<<< Finished
593>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
594d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
595d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
596d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
597d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
598<<< Finished
599>>> Testing *Iter* using d.update(%s)
600d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
601d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
602<<< Finished
603>>> Testing ConvertFromPyObject using d.update(%s)
604d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
605d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
606d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
607d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
608<<< Finished
609>>> Testing StringToChars using d.update(((%s, 0),))
610d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
611d.update(((u"\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
612d.update((("\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
613<<< Finished
614>>> Testing StringToChars using d.update((("a", {%s : 1}),))
615d.update((("a", {1 : 1}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
616d.update((("a", {u"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
617d.update((("a", {"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
618<<< Finished
619>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
620d.update((("a", {"abc" : {1 : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
621d.update((("a", {"abc" : {u"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
622d.update((("a", {"abc" : {"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
623<<< Finished
624>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
625d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
626d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
627d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
628<<< Finished
629>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
630d.update((("a", {"abc" : FailingIter()}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
631d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
632<<< Finished
633>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
634d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
635d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
636d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
637d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
638<<< Finished
639>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
640d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
641d.update((("a", Mapping({u"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
642d.update((("a", Mapping({"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
643<<< Finished
644>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
645d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
646d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
647d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
648<<< Finished
649>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
650d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
651d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
652d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
653<<< Finished
654>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
655d.update((("a", Mapping({"abc" : FailingIter()})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
656d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
657<<< Finished
658>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
659d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
660d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
661d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
662d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
663<<< Finished
664>>> Testing *Iter* using d.update((("a", %s),))
665d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
666d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
667<<< Finished
668>>> Testing ConvertFromPyObject using d.update((("a", %s),))
669d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
670d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
671d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
672d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
673<<< Finished
674>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200675d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200676>> DictionaryHasKey
677d.has_key():(<type 'exceptions.TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
678> List
679>> ListConstructor
680vim.List(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
681vim.List(a=1):(<type 'exceptions.TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200682>>> Testing StringToChars using vim.List([{%s : 1}])
683vim.List([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
684vim.List([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
685vim.List([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
686<<< Finished
687>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
688vim.List([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
689vim.List([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
690vim.List([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
691<<< Finished
692>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
693vim.List([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
694vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
695vim.List([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
696<<< Finished
697>>> Testing *Iter* using vim.List([{"abc" : %s}])
698vim.List([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
699vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
700<<< Finished
701>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
702vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
703vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
704vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
705vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
706<<< Finished
707>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
708vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
709vim.List([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
710vim.List([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
711<<< Finished
712>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
713vim.List([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
714vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
715vim.List([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
716<<< Finished
717>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
718vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
719vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
720vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
721<<< Finished
722>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
723vim.List([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
724vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
725<<< Finished
726>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
727vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
728vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
729vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
730vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
731<<< Finished
732>>> Testing *Iter* using vim.List([%s])
733vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
734vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
735<<< Finished
736>>> Testing ConvertFromPyObject using vim.List([%s])
737vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
738vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
739vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
740vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
741<<< Finished
742>> ListItem
743l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
744>> ListAssItem
745ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
746l[1000] = 3:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
747>> ListAssSlice
748ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200749>>> Testing StringToChars using l[:] = [{%s : 1}]
750l[:] = [{1 : 1}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
751l[:] = [{u"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
752l[:] = [{"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
753<<< Finished
754>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
755l[:] = [{"abc" : {1 : 1}}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
756l[:] = [{"abc" : {u"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
757l[:] = [{"abc" : {"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
758<<< Finished
759>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
760l[:] = [{"abc" : Mapping({1 : 1})}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
761l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
762l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
763<<< Finished
764>>> Testing *Iter* using l[:] = [{"abc" : %s}]
765l[:] = [{"abc" : FailingIter()}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
766l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
767<<< Finished
768>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
769l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
770l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
771l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
772l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
773<<< Finished
774>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
775l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
776l[:] = [Mapping({u"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
777l[:] = [Mapping({"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
778<<< Finished
779>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
780l[:] = [Mapping({"abc" : {1 : 1}})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
781l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
782l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
783<<< Finished
784>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
785l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
786l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
787l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
788<<< Finished
789>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
790l[:] = [Mapping({"abc" : FailingIter()})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
791l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
792<<< Finished
793>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
794l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
795l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
796l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
797l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
798<<< Finished
799>>> Testing *Iter* using l[:] = [%s]
800l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
801l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
802<<< Finished
803>>> Testing ConvertFromPyObject using l[:] = [%s]
804l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
805l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
806l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
807l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
808<<< Finished
809>> ListConcatInPlace
Bram Moolenaar8600e402013-05-30 13:28:41 +0200810>>> Testing StringToChars using l.extend([{%s : 1}])
811l.extend([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
812l.extend([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
813l.extend([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
814<<< Finished
815>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
816l.extend([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
817l.extend([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
818l.extend([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
819<<< Finished
820>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
821l.extend([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
822l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
823l.extend([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
824<<< Finished
825>>> Testing *Iter* using l.extend([{"abc" : %s}])
826l.extend([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
827l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
828<<< Finished
829>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
830l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
831l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
832l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
833l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
834<<< Finished
835>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
836l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
837l.extend([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
838l.extend([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
839<<< Finished
840>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
841l.extend([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
842l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
843l.extend([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
844<<< Finished
845>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
846l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
847l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
848l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
849<<< Finished
850>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
851l.extend([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
852l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
853<<< Finished
854>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
855l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
856l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
857l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
858l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
859<<< Finished
860>>> Testing *Iter* using l.extend([%s])
861l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
862l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
863<<< Finished
864>>> Testing ConvertFromPyObject using l.extend([%s])
865l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
866l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
867l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
868l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
869<<< Finished
870>> ListSetattr
871del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',))
872l.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
873l.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
874> Function
875>> FunctionConstructor
876vim.Function("123"):(<type 'exceptions.ValueError'>, ValueError('unnamed function does not exist',))
877vim.Function("xxx_non_existent_function_xxx"):(<type 'exceptions.ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200878vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200879>> FunctionCall
880>>> Testing StringToChars using f({%s : 1})
881f({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
882f({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
883f({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
884<<< Finished
885>>> Testing StringToChars using f({"abc" : {%s : 1}})
886f({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
887f({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
888f({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
889<<< Finished
890>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
891f({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
892f({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
893f({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
894<<< Finished
895>>> Testing *Iter* using f({"abc" : %s})
896f({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
897f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
898<<< Finished
899>>> Testing ConvertFromPyObject using f({"abc" : %s})
900f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
901f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
902f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
903f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
904<<< Finished
905>>> Testing StringToChars using f(Mapping({%s : 1}))
906f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
907f(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
908f(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
909<<< Finished
910>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
911f(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
912f(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
913f(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
914<<< Finished
915>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
916f(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
917f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
918f(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
919<<< Finished
920>>> Testing *Iter* using f(Mapping({"abc" : %s}))
921f(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
922f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
923<<< Finished
924>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
925f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
926f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
927f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
928f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
929<<< Finished
930>>> Testing *Iter* using f(%s)
931f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
932f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
933<<< Finished
934>>> Testing ConvertFromPyObject using f(%s)
935f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
936f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
937f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
938f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
939<<< Finished
940>>> Testing StringToChars using fd(self={%s : 1})
941fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
942fd(self={u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
943fd(self={"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
944<<< Finished
945>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
946fd(self={"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
947fd(self={"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
948fd(self={"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
949<<< Finished
950>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
951fd(self={"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
952fd(self={"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
953fd(self={"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
954<<< Finished
955>>> Testing *Iter* using fd(self={"abc" : %s})
956fd(self={"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
957fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
958<<< Finished
959>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
960fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
961fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
962fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
963fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
964<<< Finished
965>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
966fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
967fd(self=Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
968fd(self=Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
969<<< Finished
970>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
971fd(self=Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
972fd(self=Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
973fd(self=Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
974<<< Finished
975>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
976fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
977fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
978fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
979<<< Finished
980>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
981fd(self=Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
982fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
983<<< Finished
984>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
985fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
986fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
987fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
988fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
989<<< Finished
990>>> Testing *Iter* using fd(self=%s)
991fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
992fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
993<<< Finished
994>>> Testing ConvertFromPyObject using fd(self=%s)
995fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
996fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
997fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
998fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
999<<< Finished
1000>>> Testing ConvertFromPyMapping using fd(self=%s)
1001fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
1002<<< Finished
1003> TabPage
1004>> TabPageAttr
1005vim.current.tabpage.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1006> TabList
1007>> TabListItem
1008vim.tabpages[1000]:(<type 'exceptions.IndexError'>, IndexError('no such tab page',))
1009> Window
1010>> WindowAttr
1011vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1012>> WindowSetattr
1013vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Bram Moolenaarca982c82013-05-31 19:01:16 +02001014vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001015vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1016vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1017vim.current.window.width = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1018vim.current.window.xxxxxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxxxxx',))
1019> WinList
1020>> WinListItem
1021vim.windows[1000]:(<type 'exceptions.IndexError'>, IndexError('no such window',))
1022> Buffer
1023>> StringToLine (indirect)
1024vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1025>> SetBufferLine (indirect)
1026vim.current.buffer[0] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1027>> SetBufferLines (indirect)
1028vim.current.buffer[:] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1029vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1030>> InsertBufferLines (indirect)
1031vim.current.buffer.append(None):(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1032vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1033vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1034>> RBItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001035vim.current.buffer[100000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001036>> RBAsItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001037vim.current.buffer[100000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001038>> BufferAttr
1039vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1040>> BufferSetattr
1041vim.current.buffer.name = True:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
1042vim.current.buffer.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1043>> BufferMark
1044vim.current.buffer.mark(0):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
1045vim.current.buffer.mark("abc"):(<type 'exceptions.ValueError'>, ValueError('mark name must be a single character',))
1046vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1047>> BufferRange
1048vim.current.buffer.range(1, 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1049> BufMap
1050>> BufMapItem
1051vim.buffers[None]:(<type 'exceptions.TypeError'>, TypeError('key must be integer',))
1052vim.buffers[100000000]:(<type 'exceptions.KeyError'>, KeyError(100000000,))
1053> Current
1054>> CurrentGetattr
1055vim.current.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1056>> CurrentSetattr
1057vim.current.line = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1058vim.current.buffer = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Buffer object',))
1059vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
1060vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
1061vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1062vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1063Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1064vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1065vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1066vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1067vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))