blob: 69c98d02d3a6375f5016521459c97226dd6ac094 [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
Bram Moolenaar841fbd22013-06-23 14:37:07 +020071d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020072dl:{'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
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200205 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200206 gopts1! KeyError
207 p/wopts1: ''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200208 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200209 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200210 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200211 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[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200418['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200420'
421abcdef
422line :
423abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200424abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200425line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200426abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200427['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200428['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200429['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200430[2, 2]
431[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004321
4331
434function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200435testdir
436test86.in
437src
438testdir/test86.in
439testdir
440test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200441> Output
442>> OutputSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200443del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200444>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200445sys.stdout.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200446sys.stdout.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
447sys.stdout.softspace = -1:ValueError:('number must be greater or equal to zero',)
448<<< Finished
449>>> Testing NumberToLong using sys.stderr.softspace = %s
450sys.stderr.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
451sys.stderr.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
452sys.stderr.softspace = -1:ValueError:('number must be greater or equal to zero',)
453<<< Finished
Bram Moolenaarc476e522013-06-23 13:46:40 +0200454sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200455>> OutputWrite
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200456sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200457>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200458sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200459sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200460>>> Testing *Iter* using sys.stdout.writelines(%s)
461sys.stdout.writelines(FailingIter()):NotImplementedError:('iter',)
462sys.stdout.writelines(FailingIterNext()):NotImplementedError:('next',)
463<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200464> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200465>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200466vim.command(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200467vim.command(u"\0"):TypeError:('expected string without null bytes',)
468vim.command("\0"):TypeError:('expected string without null bytes',)
469<<< Finished
470vim.command("", 2):TypeError:('command() takes exactly one argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200471> VimToPython
472> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200473>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200474vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200475vim.eval(u"\0"):TypeError:('expected string without null bytes',)
476vim.eval("\0"):TypeError:('expected string without null bytes',)
477<<< Finished
478vim.eval("", FailingTrue()):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200479> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200480>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200481vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200482vim.bindeval(u"\0"):TypeError:('expected string without null bytes',)
483vim.bindeval("\0"):TypeError:('expected string without null bytes',)
484<<< Finished
485vim.eval("", 2):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200486> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200487>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200488vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200489vim.strwidth(u"\0"):TypeError:('expected string without null bytes',)
490vim.strwidth("\0"):TypeError:('expected string without null bytes',)
491<<< Finished
492> VimForeachRTP
493vim.foreach_rtp(None):TypeError:("'NoneType' object is not callable",)
494vim.foreach_rtp(NoArgsCall()):TypeError:('__call__() takes exactly 1 argument (2 given)',)
495vim.foreach_rtp(FailingCall()):NotImplementedError:('call',)
496vim.foreach_rtp(int, 2):TypeError:('foreach_rtp() takes exactly one argument (2 given)',)
497> import
498import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
499import failing_import:ImportError:('No module named failing_import',)
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200500import failing:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200501> Dictionary
502>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200503vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200504>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200505del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200506d.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200507vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200508d.scope = True:AttributeError:('cannot set attribute scope',)
509d.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200510>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200511d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200513d.get(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200514d.get(u"\0"):TypeError:('expected string without null bytes',)
515d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200516<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200517d.pop("a"):KeyError:('a',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200518dl.pop("a"):error:('dictionary is locked',)
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100519>> DictionaryContains
520"" in d:ValueError:('empty keys are not allowed',)
5210 in d:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200522>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200523for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200524>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200525dl["b"] = 1:error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200526>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200527d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200528d[u"\0"] = 1:TypeError:('expected string without null bytes',)
529d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200530<<< Finished
531>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200532d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200533d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
534d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200536>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
537d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',)
538d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
539d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200540<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200541>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
542d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',)
543d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
544d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200545<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200546>>> Testing *Iter* using d["a"] = {"abcF" : %s}
547d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200548d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200549<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200550>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
551d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',)
552d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',)
553d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200554d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:('keys',)
555d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:('getitem:mappingkey',)
556d["a"] = {"abcF" : FailingNumber()}:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200557<<< Finished
558>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200559d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200560d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
561d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200562<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200563>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
564d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
565d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
566d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200567<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200568>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
569d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
570d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
571d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200572<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200573>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
574d["a"] = Mapping({"abcG" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200575d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200576<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200577>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
578d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',)
579d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',)
580d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200581d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:('keys',)
582d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
583d["a"] = Mapping({"abcG" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200584<<< Finished
585>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200586d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200587d["a"] = FailingIterNext():NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200588<<< Finished
589>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200590d["a"] = None:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200591d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
592d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200593d["a"] = FailingMapping():NotImplementedError:('keys',)
594d["a"] = FailingMappingKey():NotImplementedError:('getitem:mappingkey',)
595d["a"] = FailingNumber():TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200596<<< Finished
597>> DictionaryUpdate
598>>> kwargs
599>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200600d.update(FailingMapping()):NotImplementedError:('keys',)
601d.update([FailingIterNext()]):NotImplementedError:('next',)
602>>> Testing *Iter* using d.update(%s)
603d.update(FailingIter()):NotImplementedError:('iter',)
604d.update(FailingIterNext()):NotImplementedError:('next',)
605<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200606>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200607d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200608d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
609d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200610<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200611>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
612d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
613d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
614d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200615<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200616>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
617d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
618d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
619d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200620<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200621>>> Testing *Iter* using d.update({"abcF" : %s})
622d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200623d.update({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200624<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200625>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
626d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
627d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
628d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200629d.update({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
630d.update({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
631d.update({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200632<<< Finished
633>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200634d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200635d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
636d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200637<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200638>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
639d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
640d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
641d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200642<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200643>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
644d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
645d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
646d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200647<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200648>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
649d.update(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200650d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200651<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200652>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
653d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
654d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
655d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200656d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
657d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
658d.update(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200659<<< Finished
660>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200661d.update(FailingIter()):NotImplementedError:('iter',)
662d.update(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200663<<< Finished
664>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200665d.update(None):TypeError:("'NoneType' object is not iterable",)
666d.update({"": 1}):ValueError:('empty keys are not allowed',)
667d.update({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200668d.update(FailingMapping()):NotImplementedError:('keys',)
669d.update(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
670d.update(FailingNumber()):TypeError:("'FailingNumber' object is not iterable",)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200671<<< Finished
672>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200673d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200674d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
675d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200676<<< Finished
677>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200678d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200679d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
680d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200681<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200682>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
683d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',)
684d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
685d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200686<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200687>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
688d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',)
689d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
690d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200692>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
693d.update((("a", {"abcF" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200694d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200695<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200696>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
697d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',)
698d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
699d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200700d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:('keys',)
701d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:('getitem:mappingkey',)
702d.update((("a", {"abcF" : FailingNumber()}),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200703<<< Finished
704>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200705d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200706d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
707d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200708<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200709>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
710d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',)
711d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
712d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200713<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200714>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
715d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',)
716d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
717d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200718<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200719>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
720d.update((("a", Mapping({"abcG" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200721d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200722<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200723>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
724d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',)
725d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
726d.update((("a", Mapping({"abcG" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200727d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:('keys',)
728d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:('getitem:mappingkey',)
729d.update((("a", Mapping({"abcG" : FailingNumber()})),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200730<<< Finished
731>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200732d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200733d.update((("a", FailingIterNext()),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734<<< Finished
735>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200736d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200737d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
738d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200739d.update((("a", FailingMapping()),)):NotImplementedError:('keys',)
740d.update((("a", FailingMappingKey()),)):NotImplementedError:('getitem:mappingkey',)
741d.update((("a", FailingNumber()),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200742<<< Finished
743>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200744d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200745>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200746d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200747> List
748>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200749vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
750vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200751>>> Testing *Iter* using vim.List(%s)
752vim.List(FailingIter()):NotImplementedError:('iter',)
753vim.List(FailingIterNext()):NotImplementedError:('next',)
754<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200755>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200756vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200757vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
758vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200760>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
761vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
762vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
763vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200764<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200765>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
766vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
767vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
768vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200769<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200770>>> Testing *Iter* using vim.List([{"abcF" : %s}])
771vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200772vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200773<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200774>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
775vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
776vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
777vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200778vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
779vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
780vim.List([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200781<<< Finished
782>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200783vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200784vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
785vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200786<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200787>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
788vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
789vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
790vim.List([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200791<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200792>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
793vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
794vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
795vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200796<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200797>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
798vim.List([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200799vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200800<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200801>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
802vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
803vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
804vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200805vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
806vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
807vim.List([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808<<< Finished
809>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200810vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200811vim.List([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812<<< Finished
813>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200814vim.List([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200815vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
816vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200817vim.List([FailingMapping()]):NotImplementedError:('keys',)
818vim.List([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
819vim.List([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200820<<< Finished
821>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200822l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200823>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200824ll[1] = 2:error:('list is locked',)
825l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200827ll[1:100] = "abcJ":error:('list is locked',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200828>>> Testing *Iter* using l[:] = %s
829l[:] = FailingIter():NotImplementedError:('iter',)
830l[:] = FailingIterNext():NotImplementedError:('next',)
831<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200833l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200834l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
835l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200836<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200837>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
838l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',)
839l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
840l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200841<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200842>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
843l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',)
844l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
845l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200846<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200847>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
848l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200849l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200850<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200851>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
852l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',)
853l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',)
854l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200855l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:('keys',)
856l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:('getitem:mappingkey',)
857l[:] = [{"abcF" : FailingNumber()}]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200858<<< Finished
859>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200860l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200861l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
862l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200863<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200864>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
865l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',)
866l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
867l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200868<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200869>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
870l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',)
871l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
872l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200874>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
875l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200876l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200877<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200878>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
879l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',)
880l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',)
881l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200882l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:('keys',)
883l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:('getitem:mappingkey',)
884l[:] = [Mapping({"abcG" : FailingNumber()})]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200885<<< Finished
886>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200887l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200888l[:] = [FailingIterNext()]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200889<<< Finished
890>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200891l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200892l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
893l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200894l[:] = [FailingMapping()]:NotImplementedError:('keys',)
895l[:] = [FailingMappingKey()]:NotImplementedError:('getitem:mappingkey',)
896l[:] = [FailingNumber()]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897<<< Finished
898>> ListConcatInPlace
Bram Moolenaardee2e312013-06-23 16:35:47 +0200899>>> Testing *Iter* using l.extend(%s)
900l.extend(FailingIter()):NotImplementedError:('iter',)
901l.extend(FailingIterNext()):NotImplementedError:('next',)
902<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200903>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200904l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200905l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
906l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200908>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
909l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
910l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
911l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200912<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200913>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
914l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
915l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
916l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200917<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200918>>> Testing *Iter* using l.extend([{"abcF" : %s}])
919l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200920l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200921<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200922>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
923l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
924l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
925l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200926l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
927l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
928l.extend([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200929<<< Finished
930>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200931l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200932l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
933l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200934<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200935>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
936l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
937l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
938l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200939<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200940>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
941l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
942l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
943l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200944<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200945>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
946l.extend([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200947l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200948<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200949>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
950l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
951l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
952l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200953l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
954l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
955l.extend([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200956<<< Finished
957>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200958l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200959l.extend([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200960<<< Finished
961>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200962l.extend([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200963l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
964l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200965l.extend([FailingMapping()]):NotImplementedError:('keys',)
966l.extend([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
967l.extend([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968<<< Finished
969>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200970del l.locked:AttributeError:('cannot delete vim.List attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200971l.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200972l.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200973> Function
974>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +0200975vim.Function("123"):ValueError:('unnamed function 123 does not exist',)
976vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +0200977vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200978>> FunctionCall
979>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200980f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200981f({u"\0" : 1}):TypeError:('expected string without null bytes',)
982f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200983<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200984>>> Testing StringToChars using f({"abcF" : {%s : 1}})
985f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
986f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
987f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200988<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200989>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
990f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
991f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
992f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200993<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200994>>> Testing *Iter* using f({"abcF" : %s})
995f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200996f({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200997<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200998>>> Testing ConvertFromPyObject using f({"abcF" : %s})
999f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1000f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1001f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001002f({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1003f({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1004f({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001005<<< Finished
1006>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001007f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001008f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1009f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001010<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001011>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1012f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1013f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1014f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001015<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001016>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1017f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1018f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1019f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001020<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001021>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1022f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001023f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001024<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001025>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1026f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1027f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1028f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001029f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1030f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1031f(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001032<<< Finished
1033>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001034f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001035f(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001036<<< Finished
1037>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001038f(None):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001039f({"": 1}):ValueError:('empty keys are not allowed',)
1040f({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001041f(FailingMapping()):NotImplementedError:('keys',)
1042f(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1043f(FailingNumber()):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001044<<< Finished
1045>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001046fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001047fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
1048fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001050>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1051fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1052fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1053fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001054<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001055>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1056fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1057fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1058fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001059<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001060>>> Testing *Iter* using fd(self={"abcF" : %s})
1061fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001062fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001063<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001064>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1065fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1066fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1067fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001068fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1069fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1070fd(self={"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001071<<< Finished
1072>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001073fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001074fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1075fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001076<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001077>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1078fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1079fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1080fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001081<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001082>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1083fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1084fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1085fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001086<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001087>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1088fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001089fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001090<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001091>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1092fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1093fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1094fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001095fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1096fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1097fd(self=Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001098<<< Finished
1099>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001100fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',)
1101fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001102<<< Finished
1103>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001104fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001105fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1106fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001107fd(self=FailingMapping()):NotImplementedError:('keys',)
1108fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1109fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001110<<< Finished
1111>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001112fd(self=[]):TypeError:('unable to convert list to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001113<<< Finished
1114> TabPage
1115>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001116vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001117> TabList
1118>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001119vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001120> Window
1121>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001122vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001123>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001124vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001125vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1126vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001127>>> Testing NumberToLong using vim.current.window.height = %s
1128vim.current.window.height = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1129vim.current.window.height = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1130vim.current.window.height = -1:ValueError:('number must be greater or equal to zero',)
1131<<< Finished
1132>>> Testing NumberToLong using vim.current.window.width = %s
1133vim.current.window.width = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1134vim.current.window.width = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1135vim.current.window.width = -1:ValueError:('number must be greater or equal to zero',)
1136<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001137vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001138> WinList
1139>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001140vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001141> Buffer
1142>> StringToLine (indirect)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001143vim.current.buffer[0] = u"\na":error:('string cannot contain newlines',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001144vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001145>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001146vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001147>> SetBufferLineList (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001148vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1149vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001150>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001151vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1152vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1153vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001154>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001155vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001156>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001157vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001158>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001159vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001160>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001161vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001162vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001163>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001164vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001165vim.current.buffer.mark("abcM"):ValueError:('mark name must be a single character',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001166vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001167>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001168vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001169> BufMap
1170>> BufMapItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001171vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001172>>> Testing NumberToLong using vim.buffers[%s]
1173vim.buffers[[]]:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1174vim.buffers[None]:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1175vim.buffers[-1]:ValueError:('number must be greater then zero',)
1176vim.buffers[0]:ValueError:('number must be greater then zero',)
1177<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001178> Current
1179>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001180vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001181>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001182vim.current.line = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001183vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',)
1184vim.current.window = True:TypeError:('expected vim.Window object, but got bool',)
1185vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001186vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001187['/testdir']
1188'/testdir'
Bram Moolenaara9f22202013-06-11 18:48:21 +020011892,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001190before
1191after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001192pythonx/topmodule/__init__.py
1193pythonx/topmodule/submodule/__init__.py
1194pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001195vim.command("throw 'abcN'"):error:('abcN',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001196Exe("throw 'def'"):error:('def',)
1197vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1198vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1199vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
1200vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)