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