blob: 7d243904e2eb78abd4634232236f02fd4306f8ec [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 Moolenaar8600e402013-05-30 13:28:41 +0200432> Output
433>> OutputSetattr
434del sys.stdout.softspace:(<type 'exceptions.AttributeError'>, AttributeError("can't delete OutputObject attributes",))
435sys.stdout.softspace = []:(<type 'exceptions.TypeError'>, TypeError('softspace must be an integer',))
436sys.stdout.attr = None:(<type 'exceptions.AttributeError'>, AttributeError('invalid attribute',))
437>> OutputWrite
438sys.stdout.write(None):(<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need string or buffer, NoneType found',))
439>> OutputWriteLines
440sys.stdout.writelines(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
441sys.stdout.writelines([1]):(<type 'exceptions.TypeError'>, TypeError('writelines() requires list of strings',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200442> VimCommand
443vim.command(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
444> VimToPython
445> VimEval
446vim.eval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
447> VimEvalPy
448vim.bindeval(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
449> VimStrwidth
450vim.strwidth(1):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
451> Dictionary
452>> DictionaryConstructor
453vim.Dictionary("abc"):(<type 'exceptions.ValueError'>, ValueError('expected sequence element of size 2',))
454>> DictionarySetattr
455del d.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',))
456d.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
457vim.vvars.locked = False:(<type 'exceptions.TypeError'>, TypeError('cannot modify fixed dictionary',))
458d.scope = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
459d.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
460>> _DictionaryItem
461d.get("a", 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes at most 2 arguments (3 given)',))
462>>> Testing StringToChars using d.get(%s)
463d.get(1):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
464d.get(u"\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
465d.get("\0"):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
466<<< Finished
467d.pop("a"):(<type 'exceptions.KeyError'>, KeyError('a',))
468dl.pop("a"):(<class 'vim.error'>, error('dict is locked',))
469>> DictionaryIterNext
470for i in ned: ned["a"] = 1:(<type 'exceptions.RuntimeError'>, RuntimeError('hashtab changed during iteration',))
471>> DictionaryAssItem
472dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',))
473>>> Testing StringToChars using d[%s] = 1
474d[1] = 1:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
475d[u"\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
476d["\0"] = 1:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
477<<< Finished
478>>> Testing StringToChars using d["a"] = {%s : 1}
479d["a"] = {1 : 1}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
480d["a"] = {u"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
481d["a"] = {"\0" : 1}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
482<<< Finished
483>>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
484d["a"] = {"abc" : {1 : 1}}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
485d["a"] = {"abc" : {u"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
486d["a"] = {"abc" : {"\0" : 1}}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
487<<< Finished
488>>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
489d["a"] = {"abc" : Mapping({1 : 1})}:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
490d["a"] = {"abc" : Mapping({u"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
491d["a"] = {"abc" : Mapping({"\0" : 1})}:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
492<<< Finished
493>>> Testing *Iter* using d["a"] = {"abc" : %s}
494d["a"] = {"abc" : FailingIter()}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
495d["a"] = {"abc" : FailingIterNext()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
496<<< Finished
497>>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
498d["a"] = {"abc" : None}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
499d["a"] = {"abc" : {"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
500d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
501d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
502<<< Finished
503>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
504d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
505d["a"] = Mapping({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
506d["a"] = Mapping({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
507<<< Finished
508>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
509d["a"] = Mapping({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
510d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
511d["a"] = Mapping({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
512<<< Finished
513>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
514d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
515d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
516d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
517<<< Finished
518>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
519d["a"] = Mapping({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
520d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
521<<< Finished
522>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
523d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
524d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
525d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
526d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
527<<< Finished
528>>> Testing *Iter* using d["a"] = %s
529d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
530d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
531<<< Finished
532>>> Testing ConvertFromPyObject using d["a"] = %s
533d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
534d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
535d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
536d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
537<<< Finished
538>> DictionaryUpdate
539>>> kwargs
540>>> iter
541d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
542d.update([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Bram Moolenaar8600e402013-05-30 13:28:41 +0200543>>> Testing StringToChars using d.update({%s : 1})
544d.update({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
545d.update({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
546d.update({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
547<<< Finished
548>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
549d.update({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
550d.update({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
551d.update({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
552<<< Finished
553>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
554d.update({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
555d.update({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
556d.update({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
557<<< Finished
558>>> Testing *Iter* using d.update({"abc" : %s})
559d.update({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
560d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
561<<< Finished
562>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
563d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
564d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
565d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
566d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
567<<< Finished
568>>> Testing StringToChars using d.update(Mapping({%s : 1}))
569d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
570d.update(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
571d.update(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
572<<< Finished
573>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
574d.update(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
575d.update(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
576d.update(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
577<<< Finished
578>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
579d.update(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
580d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
581d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
582<<< Finished
583>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
584d.update(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
585d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
586<<< Finished
587>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
588d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
589d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
590d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
591d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
592<<< Finished
593>>> Testing *Iter* using d.update(%s)
594d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
595d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
596<<< Finished
597>>> Testing ConvertFromPyObject using d.update(%s)
598d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
599d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
600d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
601d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
602<<< Finished
603>>> Testing StringToChars using d.update(((%s, 0),))
604d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
605d.update(((u"\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
606d.update((("\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
607<<< Finished
608>>> Testing StringToChars using d.update((("a", {%s : 1}),))
609d.update((("a", {1 : 1}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
610d.update((("a", {u"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
611d.update((("a", {"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
612<<< Finished
613>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
614d.update((("a", {"abc" : {1 : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
615d.update((("a", {"abc" : {u"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
616d.update((("a", {"abc" : {"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
617<<< Finished
618>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
619d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
620d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
621d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
622<<< Finished
623>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
624d.update((("a", {"abc" : FailingIter()}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
625d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
626<<< Finished
627>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
628d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
629d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
630d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
631d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
632<<< Finished
633>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
634d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
635d.update((("a", Mapping({u"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
636d.update((("a", Mapping({"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
637<<< Finished
638>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
639d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
640d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
641d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
642<<< Finished
643>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
644d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
645d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
646d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
647<<< Finished
648>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
649d.update((("a", Mapping({"abc" : FailingIter()})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
650d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
651<<< Finished
652>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
653d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
654d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
655d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
656d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
657<<< Finished
658>>> Testing *Iter* using d.update((("a", %s),))
659d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
660d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
661<<< Finished
662>>> Testing ConvertFromPyObject using d.update((("a", %s),))
663d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
664d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
665d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
666d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
667<<< Finished
668>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200669d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200670>> DictionaryHasKey
671d.has_key():(<type 'exceptions.TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
672> List
673>> ListConstructor
674vim.List(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
675vim.List(a=1):(<type 'exceptions.TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200676>>> Testing StringToChars using vim.List([{%s : 1}])
677vim.List([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
678vim.List([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
679vim.List([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
680<<< Finished
681>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
682vim.List([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
683vim.List([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
684vim.List([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
685<<< Finished
686>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
687vim.List([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
688vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
689vim.List([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
690<<< Finished
691>>> Testing *Iter* using vim.List([{"abc" : %s}])
692vim.List([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
693vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
694<<< Finished
695>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
696vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
697vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
698vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
699vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
700<<< Finished
701>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
702vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
703vim.List([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
704vim.List([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
705<<< Finished
706>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
707vim.List([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
708vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
709vim.List([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
710<<< Finished
711>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
712vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
713vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
714vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
715<<< Finished
716>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
717vim.List([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
718vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
719<<< Finished
720>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
721vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
722vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
723vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
724vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
725<<< Finished
726>>> Testing *Iter* using vim.List([%s])
727vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
728vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
729<<< Finished
730>>> Testing ConvertFromPyObject using vim.List([%s])
731vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
732vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
733vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
734vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
735<<< Finished
736>> ListItem
737l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
738>> ListAssItem
739ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
740l[1000] = 3:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
741>> ListAssSlice
742ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200743>>> Testing StringToChars using l[:] = [{%s : 1}]
744l[:] = [{1 : 1}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
745l[:] = [{u"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
746l[:] = [{"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
747<<< Finished
748>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
749l[:] = [{"abc" : {1 : 1}}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
750l[:] = [{"abc" : {u"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
751l[:] = [{"abc" : {"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
752<<< Finished
753>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
754l[:] = [{"abc" : Mapping({1 : 1})}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
755l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
756l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
757<<< Finished
758>>> Testing *Iter* using l[:] = [{"abc" : %s}]
759l[:] = [{"abc" : FailingIter()}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
760l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
761<<< Finished
762>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
763l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
764l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
765l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
766l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
767<<< Finished
768>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
769l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
770l[:] = [Mapping({u"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
771l[:] = [Mapping({"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
772<<< Finished
773>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
774l[:] = [Mapping({"abc" : {1 : 1}})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
775l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
776l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
777<<< Finished
778>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
779l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
780l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
781l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
782<<< Finished
783>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
784l[:] = [Mapping({"abc" : FailingIter()})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
785l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
786<<< Finished
787>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
788l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
789l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
790l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
791l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
792<<< Finished
793>>> Testing *Iter* using l[:] = [%s]
794l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
795l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
796<<< Finished
797>>> Testing ConvertFromPyObject using l[:] = [%s]
798l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
799l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
800l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
801l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
802<<< Finished
803>> ListConcatInPlace
Bram Moolenaar8600e402013-05-30 13:28:41 +0200804>>> Testing StringToChars using l.extend([{%s : 1}])
805l.extend([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
806l.extend([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
807l.extend([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
808<<< Finished
809>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
810l.extend([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
811l.extend([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
812l.extend([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
813<<< Finished
814>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
815l.extend([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
816l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
817l.extend([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
818<<< Finished
819>>> Testing *Iter* using l.extend([{"abc" : %s}])
820l.extend([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
821l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
822<<< Finished
823>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
824l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
825l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
826l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
827l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
828<<< Finished
829>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
830l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
831l.extend([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
832l.extend([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
833<<< Finished
834>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
835l.extend([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
836l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
837l.extend([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
838<<< Finished
839>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
840l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
841l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
842l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
843<<< Finished
844>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
845l.extend([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
846l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
847<<< Finished
848>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
849l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
850l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
851l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
852l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
853<<< Finished
854>>> Testing *Iter* using l.extend([%s])
855l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
856l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
857<<< Finished
858>>> Testing ConvertFromPyObject using l.extend([%s])
859l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
860l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
861l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
862l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
863<<< Finished
864>> ListSetattr
865del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',))
866l.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
867l.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
868> Function
869>> FunctionConstructor
870vim.Function("123"):(<type 'exceptions.ValueError'>, ValueError('unnamed function does not exist',))
871vim.Function("xxx_non_existent_function_xxx"):(<type 'exceptions.ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200872vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873>> FunctionCall
874>>> Testing StringToChars using f({%s : 1})
875f({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
876f({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
877f({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
878<<< Finished
879>>> Testing StringToChars using f({"abc" : {%s : 1}})
880f({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
881f({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
882f({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
883<<< Finished
884>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
885f({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
886f({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
887f({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
888<<< Finished
889>>> Testing *Iter* using f({"abc" : %s})
890f({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
891f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
892<<< Finished
893>>> Testing ConvertFromPyObject using f({"abc" : %s})
894f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
895f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
896f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
897f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
898<<< Finished
899>>> Testing StringToChars using f(Mapping({%s : 1}))
900f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
901f(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
902f(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
903<<< Finished
904>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
905f(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
906f(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
907f(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
908<<< Finished
909>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
910f(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
911f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
912f(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
913<<< Finished
914>>> Testing *Iter* using f(Mapping({"abc" : %s}))
915f(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
916f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
917<<< Finished
918>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
919f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
920f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
921f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
922f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
923<<< Finished
924>>> Testing *Iter* using f(%s)
925f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
926f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
927<<< Finished
928>>> Testing ConvertFromPyObject using f(%s)
929f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
930f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
931f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
932f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
933<<< Finished
934>>> Testing StringToChars using fd(self={%s : 1})
935fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
936fd(self={u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
937fd(self={"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
938<<< Finished
939>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
940fd(self={"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
941fd(self={"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
942fd(self={"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
943<<< Finished
944>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
945fd(self={"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
946fd(self={"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
947fd(self={"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
948<<< Finished
949>>> Testing *Iter* using fd(self={"abc" : %s})
950fd(self={"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
951fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
952<<< Finished
953>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
954fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
955fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
956fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
957fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
958<<< Finished
959>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
960fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
961fd(self=Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
962fd(self=Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
963<<< Finished
964>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
965fd(self=Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
966fd(self=Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
967fd(self=Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
968<<< Finished
969>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
970fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
971fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
972fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
973<<< Finished
974>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
975fd(self=Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
976fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
977<<< Finished
978>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
979fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
980fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
981fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
982fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
983<<< Finished
984>>> Testing *Iter* using fd(self=%s)
985fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
986fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
987<<< Finished
988>>> Testing ConvertFromPyObject using fd(self=%s)
989fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
990fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
991fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
992fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
993<<< Finished
994>>> Testing ConvertFromPyMapping using fd(self=%s)
995fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
996<<< Finished
997> TabPage
998>> TabPageAttr
999vim.current.tabpage.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1000> TabList
1001>> TabListItem
1002vim.tabpages[1000]:(<type 'exceptions.IndexError'>, IndexError('no such tab page',))
1003> Window
1004>> WindowAttr
1005vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1006>> WindowSetattr
1007vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Bram Moolenaarca982c82013-05-31 19:01:16 +02001008vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001009vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1010vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1011vim.current.window.width = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1012vim.current.window.xxxxxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxxxxx',))
1013> WinList
1014>> WinListItem
1015vim.windows[1000]:(<type 'exceptions.IndexError'>, IndexError('no such window',))
1016> Buffer
1017>> StringToLine (indirect)
1018vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1019>> SetBufferLine (indirect)
1020vim.current.buffer[0] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1021>> SetBufferLines (indirect)
1022vim.current.buffer[:] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1023vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1024>> InsertBufferLines (indirect)
1025vim.current.buffer.append(None):(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1026vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1027vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1028>> RBItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001029vim.current.buffer[100000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001030>> RBAsItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001031vim.current.buffer[100000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001032>> BufferAttr
1033vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1034>> BufferSetattr
1035vim.current.buffer.name = True:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
1036vim.current.buffer.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1037>> BufferMark
1038vim.current.buffer.mark(0):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
1039vim.current.buffer.mark("abc"):(<type 'exceptions.ValueError'>, ValueError('mark name must be a single character',))
1040vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1041>> BufferRange
1042vim.current.buffer.range(1, 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1043> BufMap
1044>> BufMapItem
1045vim.buffers[None]:(<type 'exceptions.TypeError'>, TypeError('key must be integer',))
1046vim.buffers[100000000]:(<type 'exceptions.KeyError'>, KeyError(100000000,))
1047> Current
1048>> CurrentGetattr
1049vim.current.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1050>> CurrentSetattr
1051vim.current.line = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1052vim.current.buffer = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Buffer object',))
1053vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
1054vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
1055vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1056vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1057Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1058vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1059vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1060vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1061vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))