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