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