Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 1 | start: |
| 2 | [1, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
| 3 | [1, 2, function('strlen'), {'a': 1}] |
| 4 | Vim(put):E684: |
| 5 | [0, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
| 6 | [0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 7 | 1 |
| 8 | [b'-1', b'0', b'1', b'b', b'f'] |
| 9 | [-1, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >, b'asd'] |
| 10 | [(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >), (b'f', <vim.Function '1'>)] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 11 | '-1' : {'a': 1} |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 12 | '0' : -1 |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 13 | '1' : 'asd' |
| 14 | 'b' : [1, 2, function('strlen')] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 15 | 'f' : function('1') |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 16 | [0, function('strlen')] |
| 17 | [3] |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 18 | [1, 2, function('strlen')] |
| 19 | [1, 2, function('strlen')] |
| 20 | 1 |
| 21 | 'asd' |
| 22 | 2 |
| 23 | True |
| 24 | False |
| 25 | True |
| 26 | False |
| 27 | [b'0'] |
| 28 | {'0': -1} |
Bram Moolenaar | de71b56 | 2013-06-02 17:41:54 +0200 | [diff] [blame] | 29 | (b'0', -1) |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 30 | None |
| 31 | [] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 32 | [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'] |
| 56 | Vim(py3):E725: |
| 57 | Vim(py3):E117: |
| 58 | [0.0, 0.0] |
Bram Moolenaar | af6abb9 | 2013-04-24 13:04:26 +0200 | [diff] [blame] | 59 | KeyError |
Bram Moolenaar | c11073c | 2012-09-05 19:17:42 +0200 | [diff] [blame] | 60 | TypeError |
| 61 | TypeError |
| 62 | ValueError |
| 63 | TypeError |
| 64 | TypeError |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 65 | KeyError |
| 66 | KeyError |
Bram Moolenaar | 66b7985 | 2012-09-21 14:00:35 +0200 | [diff] [blame] | 67 | d : locked:0;scope:0 |
| 68 | dl : locked:1;scope:0 |
| 69 | v: : locked:2;scope:1 |
| 70 | g: : locked:0;scope:2 |
| 71 | d:{'abc': 1} |
| 72 | dl:{'def': 1} |
| 73 | l : locked:0 |
| 74 | ll : locked:1 |
| 75 | l:[0] |
| 76 | ll:[1] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 77 | [0, 1, 2] |
| 78 | ['a', 'b'] |
| 79 | ['c', 1] |
| 80 | ['d', ['e']] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 81 | 0.0 |
Bram Moolenaar | b52f4c0 | 2013-05-21 18:19:38 +0200 | [diff] [blame] | 82 | "\0": Vim(let):E859: |
| 83 | {"\0": 1}: Vim(let):E859: |
Bram Moolenaar | 995a8cd | 2013-02-20 16:54:27 +0100 | [diff] [blame] | 84 | undefined_name: Vim(let):Trace |
Bram Moolenaar | b52f4c0 | 2013-05-21 18:19:38 +0200 | [diff] [blame] | 85 | vim: Vim(let):E859: |
Bram Moolenaar | 76d711c | 2013-02-13 14:17:08 +0100 | [diff] [blame] | 86 | [1] |
| 87 | [1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1] |
Bram Moolenaar | 230bb3f | 2013-04-24 14:07:45 +0200 | [diff] [blame] | 88 | Abc |
| 89 | bac |
| 90 | def |
| 91 | bar |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 92 | jkl |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 93 | >>> paste |
| 94 | p/gopts1: False |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 95 | p/wopts1! KeyError |
| 96 | inv: 2! KeyError |
| 97 | wopts1! KeyError |
| 98 | wopts2! KeyError |
| 99 | wopts3! KeyError |
| 100 | p/bopts1! KeyError |
| 101 | inv: 2! KeyError |
| 102 | bopts1! KeyError |
| 103 | bopts2! KeyError |
| 104 | bopts3! KeyError |
| 105 | G: 1 |
| 106 | W: 1:1 2:1 3:1 4:1 |
| 107 | B: 1:1 2:1 3:1 4:1 |
| 108 | del wopts3! KeyError |
| 109 | del bopts3! KeyError |
| 110 | G: 1 |
| 111 | W: 1:1 2:1 3:1 4:1 |
| 112 | B: 1:1 2:1 3:1 4:1 |
| 113 | >>> previewheight |
| 114 | p/gopts1: 12 |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 115 | inv: 'a'! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 116 | p/wopts1! KeyError |
| 117 | inv: 'a'! KeyError |
| 118 | wopts1! KeyError |
| 119 | wopts2! KeyError |
| 120 | wopts3! KeyError |
| 121 | p/bopts1! KeyError |
| 122 | inv: 'a'! KeyError |
| 123 | bopts1! KeyError |
| 124 | bopts2! KeyError |
| 125 | bopts3! KeyError |
| 126 | G: 5 |
| 127 | W: 1:5 2:5 3:5 4:5 |
| 128 | B: 1:5 2:5 3:5 4:5 |
| 129 | del wopts3! KeyError |
| 130 | del bopts3! KeyError |
| 131 | G: 5 |
| 132 | W: 1:5 2:5 3:5 4:5 |
| 133 | B: 1:5 2:5 3:5 4:5 |
| 134 | >>> operatorfunc |
| 135 | p/gopts1: b'' |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 136 | inv: 2! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 137 | p/wopts1! KeyError |
| 138 | inv: 2! KeyError |
| 139 | wopts1! KeyError |
| 140 | wopts2! KeyError |
| 141 | wopts3! KeyError |
| 142 | p/bopts1! KeyError |
| 143 | inv: 2! KeyError |
| 144 | bopts1! KeyError |
| 145 | bopts2! KeyError |
| 146 | bopts3! KeyError |
| 147 | G: 'A' |
| 148 | W: 1:'A' 2:'A' 3:'A' 4:'A' |
| 149 | B: 1:'A' 2:'A' 3:'A' 4:'A' |
| 150 | del wopts3! KeyError |
| 151 | del bopts3! KeyError |
| 152 | G: 'A' |
| 153 | W: 1:'A' 2:'A' 3:'A' 4:'A' |
| 154 | B: 1:'A' 2:'A' 3:'A' 4:'A' |
| 155 | >>> number |
| 156 | p/gopts1! KeyError |
| 157 | inv: 0! KeyError |
| 158 | gopts1! KeyError |
| 159 | p/wopts1: False |
| 160 | p/bopts1! KeyError |
| 161 | inv: 0! KeyError |
| 162 | bopts1! KeyError |
| 163 | bopts2! KeyError |
| 164 | bopts3! KeyError |
| 165 | G: 0 |
| 166 | W: 1:1 2:1 3:0 4:0 |
| 167 | B: 1:1 2:1 3:0 4:0 |
| 168 | del wopts3! ValueError |
| 169 | del bopts3! KeyError |
| 170 | G: 0 |
| 171 | W: 1:1 2:1 3:0 4:0 |
| 172 | B: 1:1 2:1 3:0 4:0 |
| 173 | >>> numberwidth |
| 174 | p/gopts1! KeyError |
| 175 | inv: -100! KeyError |
| 176 | gopts1! KeyError |
| 177 | p/wopts1: 8 |
Bram Moolenaar | c96ebe7 | 2013-05-21 22:38:18 +0200 | [diff] [blame] | 178 | inv: -100! error |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 179 | p/bopts1! KeyError |
| 180 | inv: -100! KeyError |
| 181 | bopts1! KeyError |
| 182 | bopts2! KeyError |
| 183 | bopts3! KeyError |
| 184 | G: 8 |
| 185 | W: 1:3 2:5 3:2 4:8 |
| 186 | B: 1:3 2:5 3:2 4:8 |
| 187 | del wopts3! ValueError |
| 188 | del bopts3! KeyError |
| 189 | G: 8 |
| 190 | W: 1:3 2:5 3:2 4:8 |
| 191 | B: 1:3 2:5 3:2 4:8 |
| 192 | >>> colorcolumn |
| 193 | p/gopts1! KeyError |
| 194 | inv: 'abc'! KeyError |
| 195 | gopts1! KeyError |
| 196 | p/wopts1: b'' |
Bram Moolenaar | c96ebe7 | 2013-05-21 22:38:18 +0200 | [diff] [blame] | 197 | inv: 'abc'! error |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 198 | p/bopts1! KeyError |
| 199 | inv: 'abc'! KeyError |
| 200 | bopts1! KeyError |
| 201 | bopts2! KeyError |
| 202 | bopts3! KeyError |
| 203 | G: '' |
| 204 | W: 1:'+2' 2:'+3' 3:'+1' 4:'' |
| 205 | B: 1:'+2' 2:'+3' 3:'+1' 4:'' |
| 206 | del wopts3! ValueError |
| 207 | del bopts3! KeyError |
| 208 | G: '' |
| 209 | W: 1:'+2' 2:'+3' 3:'+1' 4:'' |
| 210 | B: 1:'+2' 2:'+3' 3:'+1' 4:'' |
| 211 | >>> statusline |
| 212 | p/gopts1: b'' |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 213 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 214 | p/wopts1: None |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 215 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 216 | p/bopts1! KeyError |
| 217 | inv: 0! KeyError |
| 218 | bopts1! KeyError |
| 219 | bopts2! KeyError |
| 220 | bopts3! KeyError |
| 221 | G: '1' |
| 222 | W: 1:'2' 2:'4' 3:'1' 4:'1' |
| 223 | B: 1:'2' 2:'4' 3:'1' 4:'1' |
| 224 | del bopts3! KeyError |
| 225 | G: '1' |
| 226 | W: 1:'2' 2:'1' 3:'1' 4:'1' |
| 227 | B: 1:'2' 2:'1' 3:'1' 4:'1' |
| 228 | >>> autoindent |
| 229 | p/gopts1! KeyError |
| 230 | inv: 2! KeyError |
| 231 | gopts1! KeyError |
| 232 | p/wopts1! KeyError |
| 233 | inv: 2! KeyError |
| 234 | wopts1! KeyError |
| 235 | wopts2! KeyError |
| 236 | wopts3! KeyError |
| 237 | p/bopts1: False |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 238 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 239 | W: 1:0 2:1 3:0 4:1 |
| 240 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 241 | del wopts3! KeyError |
| 242 | del bopts3! ValueError |
| 243 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 244 | W: 1:0 2:1 3:0 4:1 |
| 245 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 246 | >>> shiftwidth |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 247 | p/gopts1! KeyError |
| 248 | inv: 3! KeyError |
| 249 | gopts1! KeyError |
| 250 | p/wopts1! KeyError |
| 251 | inv: 3! KeyError |
| 252 | wopts1! KeyError |
| 253 | wopts2! KeyError |
| 254 | wopts3! KeyError |
Bram Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 255 | p/bopts1: 8 |
| 256 | G: 8 |
| 257 | W: 1:0 2:2 3:8 4:1 |
| 258 | B: 1:0 2:2 3:8 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 259 | del wopts3! KeyError |
| 260 | del bopts3! ValueError |
Bram Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 261 | G: 8 |
| 262 | W: 1:0 2:2 3:8 4:1 |
| 263 | B: 1:0 2:2 3:8 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 264 | >>> omnifunc |
| 265 | p/gopts1! KeyError |
| 266 | inv: 1! KeyError |
| 267 | gopts1! KeyError |
| 268 | p/wopts1! KeyError |
| 269 | inv: 1! KeyError |
| 270 | wopts1! KeyError |
| 271 | wopts2! KeyError |
| 272 | wopts3! KeyError |
| 273 | p/bopts1: b'' |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 274 | inv: 1! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 275 | G: '' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 276 | W: 1:'A' 2:'B' 3:'' 4:'C' |
| 277 | B: 1:'A' 2:'B' 3:'' 4:'C' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 278 | del wopts3! KeyError |
| 279 | del bopts3! ValueError |
| 280 | G: '' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 281 | W: 1:'A' 2:'B' 3:'' 4:'C' |
| 282 | B: 1:'A' 2:'B' 3:'' 4:'C' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 283 | >>> preserveindent |
| 284 | p/gopts1! KeyError |
| 285 | inv: 2! KeyError |
| 286 | gopts1! KeyError |
| 287 | p/wopts1! KeyError |
| 288 | inv: 2! KeyError |
| 289 | wopts1! KeyError |
| 290 | wopts2! KeyError |
| 291 | wopts3! KeyError |
| 292 | p/bopts1: False |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 293 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 294 | W: 1:0 2:1 3:0 4:1 |
| 295 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 296 | del wopts3! KeyError |
| 297 | del bopts3! ValueError |
| 298 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 299 | W: 1:0 2:1 3:0 4:1 |
| 300 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 301 | >>> path |
Bram Moolenaar | 0418811 | 2013-06-01 20:32:12 +0200 | [diff] [blame] | 302 | p/gopts1: b'.,..,,' |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 303 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 304 | p/wopts1! KeyError |
| 305 | inv: 0! KeyError |
| 306 | wopts1! KeyError |
| 307 | wopts2! KeyError |
| 308 | wopts3! KeyError |
| 309 | p/bopts1: None |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 310 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 311 | G: '.,,' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 312 | W: 1:'.,,' 2:',,' 3:'.,,' 4:'.' |
| 313 | B: 1:'.,,' 2:',,' 3:'.,,' 4:'.' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 314 | del wopts3! KeyError |
| 315 | G: '.,,' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 316 | W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' |
| 317 | B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' |
Bram Moolenaar | bd80f35 | 2013-05-12 21:16:23 +0200 | [diff] [blame] | 318 | First line |
| 319 | First line |
| 320 | def |
| 321 | First line |
| 322 | Second line |
| 323 | Third line |
| 324 | (7, 2) |
| 325 | <buffer test87.in><buffer > |
| 326 | baz |
| 327 | bar |
| 328 | Second line |
| 329 | Third line |
| 330 | foo |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 331 | 1:BufFilePre:1 |
Bram Moolenaar | 7e28384 | 2013-05-30 11:43:15 +0200 | [diff] [blame] | 332 | 1:BufFilePost:1 |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 333 | testdir/foo |
| 334 | 5:BufFilePre:5 |
| 335 | 5:BufFilePost:5 |
| 336 | testdir/bar |
| 337 | 1:BufFilePre:1 |
Bram Moolenaar | 7e28384 | 2013-05-30 11:43:15 +0200 | [diff] [blame] | 338 | 1:BufFilePost:1 |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 339 | testdir/test87.in |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 340 | valid: b:False, cb:True |
Bram Moolenaar | b6c589a | 2013-05-15 14:39:52 +0200 | [diff] [blame] | 341 | i:<buffer test87.in> |
| 342 | i2:<buffer test87.in> |
| 343 | i:<buffer a> |
| 344 | i3:<buffer test87.in> |
| 345 | 1:<buffer test87.in>=<buffer test87.in> |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 346 | 8:<buffer a>=<buffer a> |
| 347 | 9:<buffer b>=<buffer b> |
| 348 | 10:<buffer c>=<buffer c> |
Bram Moolenaar | b6c589a | 2013-05-15 14:39:52 +0200 | [diff] [blame] | 349 | 4 |
| 350 | i4:<buffer test87.in> |
| 351 | i4:<buffer test87.in> |
| 352 | StopIteration |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 353 | Number of tabs: 4 |
| 354 | Current tab pages: |
| 355 | <tabpage 0>(1): 1 windows, current is <window object (unknown)> |
| 356 | Windows: |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 357 | <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0) |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 358 | <tabpage 1>(2): 1 windows, current is <window object (unknown)> |
| 359 | Windows: |
Bram Moolenaar | cabf80f | 2013-05-17 16:18:33 +0200 | [diff] [blame] | 360 | <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0) |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 361 | <tabpage 2>(3): 2 windows, current is <window object (unknown)> |
| 362 | Windows: |
Bram Moolenaar | cabf80f | 2013-05-17 16:18:33 +0200 | [diff] [blame] | 363 | <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0) |
| 364 | <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0) |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 365 | <tabpage 3>(4): 4 windows, current is <window 0> |
| 366 | Windows: |
| 367 | <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0) |
| 368 | <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0) |
| 369 | <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0) |
| 370 | <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0) |
| 371 | Number of windows in current tab page: 4 |
| 372 | Current tab page: <tabpage 3> |
| 373 | Current window: <window 0>: <window 0> is <window 0> |
| 374 | Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2> |
| 375 | ValueError at assigning foreign tab window |
| 376 | Type error at assigning None to vim.current.window |
| 377 | Type error at assigning None to vim.current.tabpage |
| 378 | Type error at assigning None to vim.current.buffer |
| 379 | Current tab page: <tabpage 2> |
| 380 | Current window: <window 0> |
| 381 | Current buffer: <buffer test87.in> |
| 382 | Current line: 'Type error at assigning None to vim.current.buffer' |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 383 | w.valid: [True, False] |
| 384 | t.valid: [True, False, True, False] |
Bram Moolenaar | cac867a | 2013-05-21 19:50:34 +0200 | [diff] [blame] | 385 | vim.vars:Dictionary:True |
| 386 | vim.options:Options:True |
| 387 | vim.bindeval("{}"):Dictionary:True |
| 388 | vim.bindeval("[]"):List:True |
| 389 | vim.bindeval("function('tr')"):Function:True |
| 390 | vim.current.buffer:Buffer:True |
| 391 | vim.current.range:Range:True |
| 392 | vim.current.window:Window:True |
| 393 | vim.current.tabpage:TabPage:True |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 394 | current:__dir__,buffer,line,range,tabpage,window |
| 395 | buffer:__dir__,append,mark,name,number,options,range,valid,vars |
| 396 | window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars |
| 397 | tabpage:__dir__,number,valid,vars,window,windows |
| 398 | range:__dir__,append,end,start |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 399 | dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 400 | list:__dir__,extend,locked |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 401 | function:__dir__,softspace |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 402 | output:__dir__,flush,softspace,write,writelines |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 403 | {} |
| 404 | {'a': 1} |
| 405 | {'a': 1} |
Bram Moolenaar | 78cddbe | 2013-05-30 13:05:58 +0200 | [diff] [blame] | 406 | [] |
| 407 | ['a', 'b', 'c'] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 408 | function('tr') |
Bram Moolenaar | 01a7a72 | 2013-05-30 12:26:58 +0200 | [diff] [blame] | 409 | ' |
| 410 | abcdef |
| 411 | line : |
| 412 | abcdef |
| 413 | abc |
| 414 | line : |
| 415 | abc' |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 416 | ['a', 'dup_a'] |
Bram Moolenaar | 78cddbe | 2013-05-30 13:05:58 +0200 | [diff] [blame] | 417 | ['a', 'a'] |
| 418 | ['a', 'b', 'c'] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 419 | [2, 2] |
| 420 | [2, 2] |
Bram Moolenaar | f425830 | 2013-06-02 18:20:17 +0200 | [diff] [blame] | 421 | b'testdir' |
| 422 | test87.in |
| 423 | b'src' |
| 424 | testdir/test87.in |
| 425 | b'testdir' |
| 426 | test87.in |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 427 | > Output |
| 428 | >> OutputSetattr |
| 429 | del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",)) |
Bram Moolenaar | 141be8a | 2013-06-23 14:16:57 +0200 | [diff] [blame^] | 430 | sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got list',)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 431 | sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute: attr',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 432 | >> OutputWrite |
| 433 | sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",)) |
| 434 | >> OutputWriteLines |
| 435 | sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",)) |
Bram Moolenaar | 6c85e7f | 2013-06-23 12:51:32 +0200 | [diff] [blame] | 436 | sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError("Can't convert 'int' object to str implicitly",)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 437 | >>> Testing *Iter* using sys.stdout.writelines(%s) |
| 438 | sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 439 | sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 440 | <<< Finished |
| 441 | > VimCommand |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 442 | vim.command(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 443 | > VimToPython |
| 444 | > VimEval |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 445 | vim.eval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 446 | > VimEvalPy |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 447 | vim.bindeval(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 448 | > VimStrwidth |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 449 | vim.strwidth(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 450 | > Dictionary |
| 451 | >> DictionaryConstructor |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 452 | vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 453 | >> DictionarySetattr |
| 454 | del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',)) |
| 455 | d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError()) |
| 456 | vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 457 | d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set attribute scope',)) |
| 458 | d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 459 | >> _DictionaryItem |
| 460 | d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',)) |
| 461 | >>> Testing StringToChars using d.get(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 462 | d.get(1):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 463 | d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 464 | d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 465 | <<< Finished |
| 466 | d.pop("a"):(<class 'KeyError'>, KeyError('a',)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 467 | dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 468 | >> DictionaryIterNext |
| 469 | for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',)) |
| 470 | >> DictionaryAssItem |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 471 | dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 472 | >>> Testing StringToChars using d[%s] = 1 |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 473 | d[1] = 1:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 474 | d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 475 | d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 476 | <<< Finished |
| 477 | >>> Testing StringToChars using d["a"] = {%s : 1} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 478 | d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 479 | d["a"] = {b"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 480 | d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 481 | <<< Finished |
| 482 | >>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 483 | d["a"] = {"abc" : {1 : 1}}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 484 | d["a"] = {"abc" : {b"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 485 | d["a"] = {"abc" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 486 | <<< Finished |
| 487 | >>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 488 | d["a"] = {"abc" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 489 | d["a"] = {"abc" : Mapping({b"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 490 | d["a"] = {"abc" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 491 | <<< Finished |
| 492 | >>> Testing *Iter* using d["a"] = {"abc" : %s} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 493 | d["a"] = {"abc" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 494 | d["a"] = {"abc" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError()) |
| 495 | <<< Finished |
| 496 | >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 497 | d["a"] = {"abc" : None}:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 498 | d["a"] = {"abc" : {b"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 499 | d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 500 | d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError()) |
| 501 | d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError()) |
| 502 | <<< Finished |
| 503 | >>> Testing StringToChars using d["a"] = Mapping({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 504 | d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 505 | d["a"] = Mapping({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 506 | d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 507 | <<< Finished |
| 508 | >>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 509 | d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 510 | d["a"] = Mapping({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 511 | d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 512 | <<< Finished |
| 513 | >>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 514 | d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 515 | d["a"] = Mapping({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 516 | d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 517 | <<< Finished |
| 518 | >>> Testing *Iter* using d["a"] = Mapping({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 519 | d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 520 | d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 521 | <<< Finished |
| 522 | >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 523 | d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 524 | d["a"] = Mapping({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 525 | d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 526 | d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 527 | d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 528 | <<< Finished |
| 529 | >>> Testing *Iter* using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 530 | d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 531 | d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError()) |
| 532 | <<< Finished |
| 533 | >>> Testing ConvertFromPyObject using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 534 | d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 535 | d["a"] = {b"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 536 | d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 537 | d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError()) |
| 538 | d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError()) |
| 539 | <<< Finished |
| 540 | >> DictionaryUpdate |
| 541 | >>> kwargs |
| 542 | >>> iter |
| 543 | d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 544 | d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 545 | >>> Testing *Iter* using d.update(%s) |
| 546 | d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 547 | d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 548 | <<< Finished |
| 549 | >>> Testing StringToChars using d.update({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 550 | d.update({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 551 | d.update({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 552 | d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 553 | <<< Finished |
| 554 | >>> Testing StringToChars using d.update({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 555 | d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 556 | d.update({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 557 | d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 558 | <<< Finished |
| 559 | >>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 560 | d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 561 | d.update({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 562 | d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 563 | <<< Finished |
| 564 | >>> Testing *Iter* using d.update({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 565 | d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 566 | d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 567 | <<< Finished |
| 568 | >>> Testing ConvertFromPyObject using d.update({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 569 | d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 570 | d.update({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 571 | d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 572 | d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 573 | d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 574 | <<< Finished |
| 575 | >>> Testing StringToChars using d.update(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 576 | d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 577 | d.update(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 578 | d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 579 | <<< Finished |
| 580 | >>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 581 | d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 582 | d.update(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 583 | d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 584 | <<< Finished |
| 585 | >>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 586 | d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 587 | d.update(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 588 | d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 589 | <<< Finished |
| 590 | >>> Testing *Iter* using d.update(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 591 | d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 592 | d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 593 | <<< Finished |
| 594 | >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 595 | d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 596 | d.update(Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 597 | d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 598 | d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 599 | d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 600 | <<< Finished |
| 601 | >>> Testing *Iter* using d.update(%s) |
| 602 | d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 603 | d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 604 | <<< Finished |
| 605 | >>> Testing ConvertFromPyObject using d.update(%s) |
| 606 | d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 607 | d.update({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 608 | d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 609 | d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 610 | d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 611 | <<< Finished |
| 612 | >>> Testing StringToChars using d.update(((%s, 0),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 613 | d.update(((1, 0),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 614 | d.update(((b"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 615 | d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 616 | <<< Finished |
| 617 | >>> Testing StringToChars using d.update((("a", {%s : 1}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 618 | d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 619 | d.update((("a", {b"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 620 | d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 621 | <<< Finished |
| 622 | >>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 623 | d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 624 | d.update((("a", {"abc" : {b"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 625 | d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 626 | <<< Finished |
| 627 | >>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 628 | d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 629 | d.update((("a", {"abc" : Mapping({b"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 630 | d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 631 | <<< Finished |
| 632 | >>> Testing *Iter* using d.update((("a", {"abc" : %s}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 633 | d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 634 | d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 635 | <<< Finished |
| 636 | >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 637 | d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 638 | d.update((("a", {"abc" : {b"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 639 | d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 640 | d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 641 | d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 642 | <<< Finished |
| 643 | >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 644 | d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 645 | d.update((("a", Mapping({b"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 646 | d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 647 | <<< Finished |
| 648 | >>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 649 | d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 650 | d.update((("a", Mapping({"abc" : {b"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 651 | d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 652 | <<< Finished |
| 653 | >>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 654 | d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 655 | d.update((("a", Mapping({"abc" : Mapping({b"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 656 | d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 657 | <<< Finished |
| 658 | >>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 659 | d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 660 | d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 661 | <<< Finished |
| 662 | >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 663 | d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 664 | d.update((("a", Mapping({"abc" : {b"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 665 | d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 666 | d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 667 | d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 668 | <<< Finished |
| 669 | >>> Testing *Iter* using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 670 | d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 671 | d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 672 | <<< Finished |
| 673 | >>> Testing ConvertFromPyObject using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 674 | d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 675 | d.update((("a", {b"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 676 | d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 677 | d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 678 | d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError()) |
| 679 | <<< Finished |
| 680 | >> DictionaryPopItem |
Bram Moolenaar | de71b56 | 2013-06-02 17:41:54 +0200 | [diff] [blame] | 681 | d.popitem(1, 2):(<class 'TypeError'>, TypeError('popitem() takes no arguments (2 given)',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 682 | >> DictionaryHasKey |
Bram Moolenaar | 389a179 | 2013-06-23 13:00:44 +0200 | [diff] [blame] | 683 | d.has_key():(<class 'TypeError'>, TypeError('has_key() takes exactly one argument (0 given)',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 684 | > List |
| 685 | >> ListConstructor |
| 686 | vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',)) |
| 687 | vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',)) |
| 688 | >>> Testing *Iter* using vim.List(%s) |
| 689 | vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 690 | vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 691 | <<< Finished |
| 692 | >>> Testing StringToChars using vim.List([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 693 | vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 694 | vim.List([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 695 | vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 696 | <<< Finished |
| 697 | >>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 698 | vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 699 | vim.List([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 700 | vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 701 | <<< Finished |
| 702 | >>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 703 | vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 704 | vim.List([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 705 | vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 706 | <<< Finished |
| 707 | >>> Testing *Iter* using vim.List([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 708 | vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 709 | vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 710 | <<< Finished |
| 711 | >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 712 | vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 713 | vim.List([{"abc" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 714 | vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 715 | vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 716 | vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 717 | <<< Finished |
| 718 | >>> Testing StringToChars using vim.List([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 719 | vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 720 | vim.List([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 721 | vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 722 | <<< Finished |
| 723 | >>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 724 | vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 725 | vim.List([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 726 | vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 727 | <<< Finished |
| 728 | >>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 729 | vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 730 | vim.List([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 731 | vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 732 | <<< Finished |
| 733 | >>> Testing *Iter* using vim.List([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 734 | vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 735 | vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 736 | <<< Finished |
| 737 | >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 738 | vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 739 | vim.List([Mapping({"abc" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 740 | vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 741 | vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 742 | vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 743 | <<< Finished |
| 744 | >>> Testing *Iter* using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 745 | vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 746 | vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 747 | <<< Finished |
| 748 | >>> Testing ConvertFromPyObject using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 749 | vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 750 | vim.List([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 751 | vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 752 | vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 753 | vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 754 | <<< Finished |
| 755 | >> ListItem |
| 756 | l[1000]:(<class 'IndexError'>, IndexError('list index out of range',)) |
| 757 | >> ListAssItem |
| 758 | ll[1] = 2:(<class 'vim.error'>, error('list is locked',)) |
| 759 | l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',)) |
| 760 | >> ListAssSlice |
| 761 | ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',)) |
| 762 | >>> Testing *Iter* using l[:] = %s |
| 763 | l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError()) |
| 764 | l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError()) |
| 765 | <<< Finished |
| 766 | >>> Testing StringToChars using l[:] = [{%s : 1}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 767 | l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 768 | l[:] = [{b"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 769 | l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 770 | <<< Finished |
| 771 | >>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 772 | l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 773 | l[:] = [{"abc" : {b"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 774 | l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 775 | <<< Finished |
| 776 | >>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 777 | l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 778 | l[:] = [{"abc" : Mapping({b"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 779 | l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 780 | <<< Finished |
| 781 | >>> Testing *Iter* using l[:] = [{"abc" : %s}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 782 | l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 783 | l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 784 | <<< Finished |
| 785 | >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 786 | l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 787 | l[:] = [{"abc" : {b"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 788 | l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 789 | l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 790 | l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 791 | <<< Finished |
| 792 | >>> Testing StringToChars using l[:] = [Mapping({%s : 1})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 793 | l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 794 | l[:] = [Mapping({b"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 795 | l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 796 | <<< Finished |
| 797 | >>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 798 | l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 799 | l[:] = [Mapping({"abc" : {b"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 800 | l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 801 | <<< Finished |
| 802 | >>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 803 | l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 804 | l[:] = [Mapping({"abc" : Mapping({b"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 805 | l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 806 | <<< Finished |
| 807 | >>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 808 | l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 809 | l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 810 | <<< Finished |
| 811 | >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 812 | l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 813 | l[:] = [Mapping({"abc" : {b"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 814 | l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 815 | l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 816 | l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 817 | <<< Finished |
| 818 | >>> Testing *Iter* using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 819 | l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 820 | l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 821 | <<< Finished |
| 822 | >>> Testing ConvertFromPyObject using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 823 | l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 824 | l[:] = [{b"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 825 | l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 826 | l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 827 | l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError()) |
| 828 | <<< Finished |
| 829 | >> ListConcatInPlace |
| 830 | >>> Testing *Iter* using l.extend(%s) |
| 831 | l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 832 | l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 833 | <<< Finished |
| 834 | >>> Testing StringToChars using l.extend([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 835 | l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 836 | l.extend([{b"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 837 | l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 838 | <<< Finished |
| 839 | >>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 840 | l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 841 | l.extend([{"abc" : {b"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 842 | l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 843 | <<< Finished |
| 844 | >>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 845 | l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 846 | l.extend([{"abc" : Mapping({b"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 847 | l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 848 | <<< Finished |
| 849 | >>> Testing *Iter* using l.extend([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 850 | l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 851 | l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 852 | <<< Finished |
| 853 | >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 854 | l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 855 | l.extend([{"abc" : {b"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 856 | l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 857 | l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 858 | l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 859 | <<< Finished |
| 860 | >>> Testing StringToChars using l.extend([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 861 | l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 862 | l.extend([Mapping({b"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 863 | l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 864 | <<< Finished |
| 865 | >>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 866 | l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 867 | l.extend([Mapping({"abc" : {b"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 868 | l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 869 | <<< Finished |
| 870 | >>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 871 | l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 872 | l.extend([Mapping({"abc" : Mapping({b"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 873 | l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 874 | <<< Finished |
| 875 | >>> Testing *Iter* using l.extend([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 876 | l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 877 | l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 878 | <<< Finished |
| 879 | >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 880 | l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 881 | l.extend([Mapping({"abc" : {b"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 882 | l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 883 | l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 884 | l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 885 | <<< Finished |
| 886 | >>> Testing *Iter* using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 887 | l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 888 | l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 889 | <<< Finished |
| 890 | >>> Testing ConvertFromPyObject using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 891 | l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 892 | l.extend([{b"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 893 | l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 894 | l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 895 | l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError()) |
| 896 | <<< Finished |
| 897 | >> ListSetattr |
| 898 | del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',)) |
| 899 | l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError()) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 900 | l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set attribute xxx',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 901 | > Function |
| 902 | >> FunctionConstructor |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 903 | vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function 123 does not exist',)) |
| 904 | vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function xxx_non_existent_function_xxx does not exist',)) |
Bram Moolenaar | 018acca | 2013-05-30 13:37:28 +0200 | [diff] [blame] | 905 | vim.Function("xxx#non#existent#function#xxx"):NOT FAILED |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 906 | >> FunctionCall |
| 907 | >>> Testing StringToChars using f({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 908 | f({1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 909 | f({b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 910 | f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 911 | <<< Finished |
| 912 | >>> Testing StringToChars using f({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 913 | f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 914 | f({"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 915 | f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 916 | <<< Finished |
| 917 | >>> Testing StringToChars using f({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 918 | f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 919 | f({"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 920 | f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 921 | <<< Finished |
| 922 | >>> Testing *Iter* using f({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 923 | f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 924 | f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 925 | <<< Finished |
| 926 | >>> Testing ConvertFromPyObject using f({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 927 | f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 928 | f({"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 929 | f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 930 | f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 931 | f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 932 | <<< Finished |
| 933 | >>> Testing StringToChars using f(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 934 | f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 935 | f(Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 936 | f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 937 | <<< Finished |
| 938 | >>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 939 | f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 940 | f(Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 941 | f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 942 | <<< Finished |
| 943 | >>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 944 | f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 945 | f(Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 946 | f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 947 | <<< Finished |
| 948 | >>> Testing *Iter* using f(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 949 | f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 950 | f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 951 | <<< Finished |
| 952 | >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 953 | f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 954 | f(Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 955 | f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 956 | f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 957 | f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 958 | <<< Finished |
| 959 | >>> Testing *Iter* using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 960 | f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 961 | f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 962 | <<< Finished |
| 963 | >>> Testing ConvertFromPyObject using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 964 | f(None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 965 | f({b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 966 | f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 967 | f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 968 | f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 969 | <<< Finished |
| 970 | >>> Testing StringToChars using fd(self={%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 971 | fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 972 | fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 973 | fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 974 | <<< Finished |
| 975 | >>> Testing StringToChars using fd(self={"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 976 | fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 977 | fd(self={"abc" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 978 | fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 979 | <<< Finished |
| 980 | >>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 981 | fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 982 | fd(self={"abc" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 983 | fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 984 | <<< Finished |
| 985 | >>> Testing *Iter* using fd(self={"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 986 | fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 987 | fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 988 | <<< Finished |
| 989 | >>> Testing ConvertFromPyObject using fd(self={"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 990 | fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 991 | fd(self={"abc" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 992 | fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 993 | fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 994 | fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) |
| 995 | <<< Finished |
| 996 | >>> Testing StringToChars using fd(self=Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 997 | fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 998 | fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 999 | fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 1000 | <<< Finished |
| 1001 | >>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1002 | fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1003 | fd(self=Mapping({"abc" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1004 | fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 1005 | <<< Finished |
| 1006 | >>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1007 | fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1008 | fd(self=Mapping({"abc" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1009 | fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
| 1010 | <<< Finished |
| 1011 | >>> Testing *Iter* using fd(self=Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1012 | fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim structure',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1013 | fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 1014 | <<< Finished |
| 1015 | >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1016 | fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim structure',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 1017 | fd(self=Mapping({"abc" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1018 | fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 1019 | fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 1020 | fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) |
| 1021 | <<< Finished |
| 1022 | >>> Testing *Iter* using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1023 | fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to vim dictionary',)) |
| 1024 | fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to vim dictionary',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1025 | <<< Finished |
| 1026 | >>> Testing ConvertFromPyObject using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1027 | fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to vim dictionary',)) |
Bram Moolenaar | 78b5957 | 2013-06-02 18:54:21 +0200 | [diff] [blame] | 1028 | fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1029 | fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) |
| 1030 | fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 1031 | fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) |
| 1032 | <<< Finished |
| 1033 | >>> Testing ConvertFromPyMapping using fd(self=%s) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1034 | fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1035 | <<< Finished |
| 1036 | > TabPage |
| 1037 | >> TabPageAttr |
| 1038 | vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",)) |
| 1039 | > TabList |
| 1040 | >> TabListItem |
| 1041 | vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',)) |
| 1042 | > Window |
| 1043 | >> WindowAttr |
| 1044 | vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",)) |
| 1045 | >> WindowSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1046 | vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute: buffer',)) |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1047 | vim.current.window.cursor = (100000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1048 | vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',)) |
Bram Moolenaar | 141be8a | 2013-06-23 14:16:57 +0200 | [diff] [blame^] | 1049 | vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got str',)) |
| 1050 | vim.current.window.width = "abc":(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got str',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1051 | vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',)) |
| 1052 | > WinList |
| 1053 | >> WinListItem |
| 1054 | vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',)) |
| 1055 | > Buffer |
| 1056 | >> StringToLine (indirect) |
| 1057 | vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',)) |
| 1058 | >> SetBufferLine (indirect) |
| 1059 | vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) |
| 1060 | >> SetBufferLines (indirect) |
| 1061 | vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) |
| 1062 | vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',)) |
| 1063 | >> InsertBufferLines (indirect) |
| 1064 | vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) |
| 1065 | vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',)) |
| 1066 | vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',)) |
| 1067 | >> RBItem |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1068 | vim.current.buffer[100000000]:(<class 'IndexError'>, IndexError('line number out of range',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1069 | >> RBAsItem |
Bram Moolenaar | 96c7dfd | 2013-05-31 18:46:11 +0200 | [diff] [blame] | 1070 | vim.current.buffer[100000000] = "":(<class 'IndexError'>, IndexError('line number out of range',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1071 | >> BufferAttr |
| 1072 | vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",)) |
| 1073 | >> BufferSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1074 | vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got bool',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1075 | vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',)) |
| 1076 | >> BufferMark |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1077 | vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1078 | vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',)) |
| 1079 | vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',)) |
| 1080 | >> BufferRange |
| 1081 | vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',)) |
| 1082 | > BufMap |
| 1083 | >> BufMapItem |
Bram Moolenaar | 141be8a | 2013-06-23 14:16:57 +0200 | [diff] [blame^] | 1084 | vim.buffers[None]:(<class 'TypeError'>, TypeError('expected int() or something supporting coercing to int(), but got NoneType',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1085 | vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,)) |
| 1086 | > Current |
| 1087 | >> CurrentGetattr |
| 1088 | vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",)) |
| 1089 | >> CurrentSetattr |
| 1090 | vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1091 | vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object, but got bool',)) |
| 1092 | vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object, but got bool',)) |
| 1093 | vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object, but got bool',)) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1094 | vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',)) |
Bram Moolenaar | a9f2220 | 2013-06-11 18:48:21 +0200 | [diff] [blame] | 1095 | 3,xx |
Bram Moolenaar | 9f3685a | 2013-06-12 14:20:36 +0200 | [diff] [blame] | 1096 | before |
| 1097 | after |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1098 | vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',)) |
| 1099 | Exe("throw 'def'"):(<class 'vim.error'>, error('def',)) |
| 1100 | vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',)) |
| 1101 | vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',)) |
| 1102 | vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) |
| 1103 | vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) |