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