blob: e981544f02cef91a6da2dc58fc8ea61ce59b626a [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',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200506d["a"] = {"abc" : {u"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200507d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
508d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
509<<< Finished
510>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
511d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
512d["a"] = Mapping({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
513d["a"] = Mapping({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
514<<< Finished
515>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
516d["a"] = Mapping({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
517d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
518d["a"] = Mapping({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
519<<< Finished
520>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
521d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
522d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
523d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
524<<< Finished
525>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
526d["a"] = Mapping({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
527d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
528<<< Finished
529>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
530d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
531d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200532d["a"] = Mapping({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200533d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
534d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
535<<< Finished
536>>> Testing *Iter* using d["a"] = %s
537d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
538d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
539<<< Finished
540>>> Testing ConvertFromPyObject using d["a"] = %s
541d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
542d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200543d["a"] = {u"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200544d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
545d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
546<<< Finished
547>> DictionaryUpdate
548>>> kwargs
549>>> iter
550d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
551d.update([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
Bram Moolenaar8600e402013-05-30 13:28:41 +0200552>>> Testing StringToChars using d.update({%s : 1})
553d.update({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
554d.update({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
555d.update({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
556<<< Finished
557>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
558d.update({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
559d.update({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
560d.update({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
561<<< Finished
562>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
563d.update({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
564d.update({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
565d.update({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
566<<< Finished
567>>> Testing *Iter* using d.update({"abc" : %s})
568d.update({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
569d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
570<<< Finished
571>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
572d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
573d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200574d.update({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200575d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
576d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
577<<< Finished
578>>> Testing StringToChars using d.update(Mapping({%s : 1}))
579d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
580d.update(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
581d.update(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
582<<< Finished
583>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
584d.update(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
585d.update(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
586d.update(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
587<<< Finished
588>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
589d.update(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
590d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
591d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
592<<< Finished
593>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
594d.update(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
595d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
596<<< Finished
597>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
598d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
599d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200600d.update(Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200601d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
602d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
603<<< Finished
604>>> Testing *Iter* using d.update(%s)
605d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
606d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
607<<< Finished
608>>> Testing ConvertFromPyObject using d.update(%s)
609d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
610d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200611d.update({u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200612d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
613d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
614<<< Finished
615>>> Testing StringToChars using d.update(((%s, 0),))
616d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
617d.update(((u"\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
618d.update((("\0", 0),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
619<<< Finished
620>>> Testing StringToChars using d.update((("a", {%s : 1}),))
621d.update((("a", {1 : 1}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
622d.update((("a", {u"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
623d.update((("a", {"\0" : 1}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
624<<< Finished
625>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
626d.update((("a", {"abc" : {1 : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
627d.update((("a", {"abc" : {u"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
628d.update((("a", {"abc" : {"\0" : 1}}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
629<<< Finished
630>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
631d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
632d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
633d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
634<<< Finished
635>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
636d.update((("a", {"abc" : FailingIter()}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
637d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
638<<< Finished
639>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
640d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
641d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200642d.update((("a", {"abc" : {u"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200643d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
644d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
645<<< Finished
646>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
647d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
648d.update((("a", Mapping({u"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
649d.update((("a", Mapping({"\0" : 1})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
650<<< Finished
651>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
652d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
653d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
654d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
655<<< Finished
656>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
657d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
658d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
659d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
660<<< Finished
661>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
662d.update((("a", Mapping({"abc" : FailingIter()})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
663d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
664<<< Finished
665>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
666d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
667d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200668d.update((("a", Mapping({"abc" : {u"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200669d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
670d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
671<<< Finished
672>>> Testing *Iter* using d.update((("a", %s),))
673d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
674d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
675<<< Finished
676>>> Testing ConvertFromPyObject using d.update((("a", %s),))
677d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
678d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200679d.update((("a", {u"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200680d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
681d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
682<<< Finished
683>> DictionaryPopItem
Bram Moolenaarde71b562013-06-02 17:41:54 +0200684d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685>> DictionaryHasKey
686d.has_key():(<type 'exceptions.TypeError'>, TypeError('function takes exactly 1 argument (0 given)',))
687> List
688>> ListConstructor
689vim.List(1, 2):(<type 'exceptions.TypeError'>, TypeError('function takes at most 1 argument (2 given)',))
690vim.List(a=1):(<type 'exceptions.TypeError'>, TypeError('list constructor does not accept keyword arguments',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691>>> Testing StringToChars using vim.List([{%s : 1}])
692vim.List([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
693vim.List([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
694vim.List([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
695<<< Finished
696>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
697vim.List([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
698vim.List([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
699vim.List([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
700<<< Finished
701>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
702vim.List([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
703vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
704vim.List([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
705<<< Finished
706>>> Testing *Iter* using vim.List([{"abc" : %s}])
707vim.List([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
708vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
709<<< Finished
710>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
711vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
712vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200713vim.List([{"abc" : {u"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200714vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
715vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
716<<< Finished
717>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
718vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
719vim.List([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
720vim.List([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
721<<< Finished
722>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
723vim.List([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
724vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
725vim.List([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
726<<< Finished
727>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
728vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
729vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
730vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
731<<< Finished
732>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
733vim.List([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
734vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
735<<< Finished
736>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
737vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
738vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200739vim.List([Mapping({"abc" : {u"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200740vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
741vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
742<<< Finished
743>>> Testing *Iter* using vim.List([%s])
744vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
745vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
746<<< Finished
747>>> Testing ConvertFromPyObject using vim.List([%s])
748vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
749vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200750vim.List([{u"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200751vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
752vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
753<<< Finished
754>> ListItem
755l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
756>> ListAssItem
757ll[1] = 2:(<class 'vim.error'>, error('list is locked',))
758l[1000] = 3:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
759>> ListAssSlice
760ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200761>>> Testing StringToChars using l[:] = [{%s : 1}]
762l[:] = [{1 : 1}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
763l[:] = [{u"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
764l[:] = [{"\0" : 1}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
765<<< Finished
766>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
767l[:] = [{"abc" : {1 : 1}}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
768l[:] = [{"abc" : {u"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
769l[:] = [{"abc" : {"\0" : 1}}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
770<<< Finished
771>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
772l[:] = [{"abc" : Mapping({1 : 1})}]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
773l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
774l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
775<<< Finished
776>>> Testing *Iter* using l[:] = [{"abc" : %s}]
777l[:] = [{"abc" : FailingIter()}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
778l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
779<<< Finished
780>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
781l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
782l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200783l[:] = [{"abc" : {u"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200784l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
785l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
786<<< Finished
787>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
788l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
789l[:] = [Mapping({u"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
790l[:] = [Mapping({"\0" : 1})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
791<<< Finished
792>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
793l[:] = [Mapping({"abc" : {1 : 1}})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
794l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
795l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
796<<< Finished
797>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
798l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
799l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
800l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
801<<< Finished
802>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
803l[:] = [Mapping({"abc" : FailingIter()})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
804l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
805<<< Finished
806>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
807l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
808l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200809l[:] = [Mapping({"abc" : {u"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200810l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
811l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
812<<< Finished
813>>> Testing *Iter* using l[:] = [%s]
814l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
815l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
816<<< Finished
817>>> Testing ConvertFromPyObject using l[:] = [%s]
818l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
819l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200820l[:] = [{u"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200821l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
822l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
823<<< Finished
824>> ListConcatInPlace
Bram Moolenaar8600e402013-05-30 13:28:41 +0200825>>> Testing StringToChars using l.extend([{%s : 1}])
826l.extend([{1 : 1}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
827l.extend([{u"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
828l.extend([{"\0" : 1}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
829<<< Finished
830>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
831l.extend([{"abc" : {1 : 1}}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
832l.extend([{"abc" : {u"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
833l.extend([{"abc" : {"\0" : 1}}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
834<<< Finished
835>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
836l.extend([{"abc" : Mapping({1 : 1})}]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
837l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
838l.extend([{"abc" : Mapping({"\0" : 1})}]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
839<<< Finished
840>>> Testing *Iter* using l.extend([{"abc" : %s}])
841l.extend([{"abc" : FailingIter()}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
842l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
843<<< Finished
844>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
845l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
846l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200847l.extend([{"abc" : {u"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200848l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
849l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
850<<< Finished
851>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
852l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
853l.extend([Mapping({u"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
854l.extend([Mapping({"\0" : 1})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
855<<< Finished
856>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
857l.extend([Mapping({"abc" : {1 : 1}})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
858l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
859l.extend([Mapping({"abc" : {"\0" : 1}})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
860<<< Finished
861>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
862l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
863l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
864l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
865<<< Finished
866>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
867l.extend([Mapping({"abc" : FailingIter()})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
868l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
869<<< Finished
870>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
871l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
872l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200873l.extend([Mapping({"abc" : {u"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200874l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
875l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
876<<< Finished
877>>> Testing *Iter* using l.extend([%s])
878l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
879l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
880<<< Finished
881>>> Testing ConvertFromPyObject using l.extend([%s])
882l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
883l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200884l.extend([{u"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200885l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
886l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
887<<< Finished
888>> ListSetattr
889del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',))
890l.locked = FailingTrue():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
891l.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('cannot set this attribute',))
892> Function
893>> FunctionConstructor
894vim.Function("123"):(<type 'exceptions.ValueError'>, ValueError('unnamed function does not exist',))
895vim.Function("xxx_non_existent_function_xxx"):(<type 'exceptions.ValueError'>, ValueError('function does not exist',))
Bram Moolenaar018acca2013-05-30 13:37:28 +0200896vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897>> FunctionCall
898>>> Testing StringToChars using f({%s : 1})
899f({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
900f({u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
901f({"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
902<<< Finished
903>>> Testing StringToChars using f({"abc" : {%s : 1}})
904f({"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
905f({"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
906f({"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
907<<< Finished
908>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
909f({"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
910f({"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
911f({"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
912<<< Finished
913>>> Testing *Iter* using f({"abc" : %s})
914f({"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
915f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
916<<< Finished
917>>> Testing ConvertFromPyObject using f({"abc" : %s})
918f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
919f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200920f({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200921f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
922f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
923<<< Finished
924>>> Testing StringToChars using f(Mapping({%s : 1}))
925f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
926f(Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
927f(Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
928<<< Finished
929>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
930f(Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
931f(Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
932f(Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
933<<< Finished
934>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
935f(Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
936f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
937f(Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
938<<< Finished
939>>> Testing *Iter* using f(Mapping({"abc" : %s}))
940f(Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
941f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
942<<< Finished
943>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
944f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
945f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200946f(Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200947f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
948f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
949<<< Finished
950>>> Testing *Iter* using f(%s)
951f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
952f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
953<<< Finished
954>>> Testing ConvertFromPyObject using f(%s)
955f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
956f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200957f({u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200958f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
959f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
960<<< Finished
961>>> Testing StringToChars using fd(self={%s : 1})
962fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
963fd(self={u"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
964fd(self={"\0" : 1}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
965<<< Finished
966>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
967fd(self={"abc" : {1 : 1}}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
968fd(self={"abc" : {u"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
969fd(self={"abc" : {"\0" : 1}}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
970<<< Finished
971>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
972fd(self={"abc" : Mapping({1 : 1})}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
973fd(self={"abc" : Mapping({u"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
974fd(self={"abc" : Mapping({"\0" : 1})}):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
975<<< Finished
976>>> Testing *Iter* using fd(self={"abc" : %s})
977fd(self={"abc" : FailingIter()}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
978fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
979<<< Finished
980>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
981fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
982fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +0200983fd(self={"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +0200984fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
985fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
986<<< Finished
987>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
988fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
989fd(self=Mapping({u"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
990fd(self=Mapping({"\0" : 1})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
991<<< Finished
992>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
993fd(self=Mapping({"abc" : {1 : 1}})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
994fd(self=Mapping({"abc" : {u"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
995fd(self=Mapping({"abc" : {"\0" : 1}})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
996<<< Finished
997>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
998fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
999fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
1000fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<type 'exceptions.TypeError'>, TypeError('expected string without null bytes',))
1001<<< Finished
1002>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
1003fd(self=Mapping({"abc" : FailingIter()})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
1004fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
1005<<< Finished
1006>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
1007fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
1008fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001009fd(self=Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001010fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
1011fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
1012<<< Finished
1013>>> Testing *Iter* using fd(self=%s)
1014fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
1015fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
1016<<< Finished
1017>>> Testing ConvertFromPyObject using fd(self=%s)
1018fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
1019fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar78b59572013-06-02 18:54:21 +02001020fd(self={u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
1022fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
1023<<< Finished
1024>>> Testing ConvertFromPyMapping using fd(self=%s)
1025fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
1026<<< Finished
1027> TabPage
1028>> TabPageAttr
1029vim.current.tabpage.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1030> TabList
1031>> TabListItem
1032vim.tabpages[1000]:(<type 'exceptions.IndexError'>, IndexError('no such tab page',))
1033> Window
1034>> WindowAttr
1035vim.current.window.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1036>> WindowSetattr
1037vim.current.window.buffer = 0:(<type 'exceptions.TypeError'>, TypeError('readonly attribute',))
Bram Moolenaarca982c82013-05-31 19:01:16 +02001038vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039vim.current.window.cursor = True:(<type 'exceptions.TypeError'>, TypeError('argument must be 2-item sequence, not bool',))
1040vim.current.window.height = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1041vim.current.window.width = "abc":(<type 'exceptions.TypeError'>, TypeError('an integer is required',))
1042vim.current.window.xxxxxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxxxxx',))
1043> WinList
1044>> WinListItem
1045vim.windows[1000]:(<type 'exceptions.IndexError'>, IndexError('no such window',))
1046> Buffer
1047>> StringToLine (indirect)
1048vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',))
1049>> SetBufferLine (indirect)
1050vim.current.buffer[0] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1051>> SetBufferLines (indirect)
1052vim.current.buffer[:] = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1053vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',))
1054>> InsertBufferLines (indirect)
1055vim.current.buffer.append(None):(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1056vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',))
1057vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',))
1058>> RBItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001059vim.current.buffer[100000000]:(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001060>> RBAsItem
Bram Moolenaarca982c82013-05-31 19:01:16 +02001061vim.current.buffer[100000000] = "":(<type 'exceptions.IndexError'>, IndexError('line number out of range',))
Bram Moolenaar8600e402013-05-30 13:28:41 +02001062>> BufferAttr
1063vim.current.buffer.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1064>> BufferSetattr
1065vim.current.buffer.name = True:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
1066vim.current.buffer.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1067>> BufferMark
1068vim.current.buffer.mark(0):(<type 'exceptions.TypeError'>, TypeError('must be string, not int',))
1069vim.current.buffer.mark("abc"):(<type 'exceptions.ValueError'>, ValueError('mark name must be a single character',))
1070vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',))
1071>> BufferRange
1072vim.current.buffer.range(1, 2, 3):(<type 'exceptions.TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',))
1073> BufMap
1074>> BufMapItem
1075vim.buffers[None]:(<type 'exceptions.TypeError'>, TypeError('key must be integer',))
1076vim.buffers[100000000]:(<type 'exceptions.KeyError'>, KeyError(100000000,))
1077> Current
1078>> CurrentGetattr
1079vim.current.xxx:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
1080>> CurrentSetattr
1081vim.current.line = True:(<type 'exceptions.TypeError'>, TypeError('bad argument type for built-in operation',))
1082vim.current.buffer = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Buffer object',))
1083vim.current.window = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.Window object',))
1084vim.current.tabpage = True:(<type 'exceptions.TypeError'>, TypeError('expected vim.TabPage object',))
1085vim.current.xxx = True:(<type 'exceptions.AttributeError'>, AttributeError('xxx',))
Bram Moolenaara9f22202013-06-11 18:48:21 +020010862,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001087before
1088after
Bram Moolenaar8600e402013-05-30 13:28:41 +02001089vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',))
1090Exe("throw 'def'"):(<class 'vim.error'>, error('def',))
1091vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',))
1092vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',))
1093vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
1094vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))