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 | 2177f9f | 2016-05-25 20:39:09 +0200 | [diff] [blame] | 451 | function:__dir__,__members__,args,auto_rebind,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], {}) |
Bram Moolenaar | 2177f9f | 2016-05-25 20:39:09 +0200 | [diff] [blame] | 463 | auto_rebind |
| 464 | function('tr') |
| 465 | function('tr', [123, 3, 4]) |
| 466 | function('tr') |
| 467 | function('tr', {}) |
| 468 | function('tr', [123, 3, 4], {}) |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 469 | a: <vim.Function 'Args'> |
| 470 | pa1: <vim.Function 'Args', args=['abcArgsPA1']> |
| 471 | pa2: <vim.Function 'Args'> |
| 472 | pa3: <vim.Function 'Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'}> |
| 473 | pa4: <vim.Function 'Args', self={'abcSelfPA4': 'abcSelfPA4Val'}> |
| 474 | sa: <vim.Function 'SelfArgs'> |
| 475 | psa1: <vim.Function 'SelfArgs', args=['abcArgsPSA1']> |
| 476 | psa2: <vim.Function 'SelfArgs'> |
| 477 | psa3: <vim.Function 'SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'}> |
| 478 | psa4: <vim.Function 'SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'}> |
Bram Moolenaar | 2177f9f | 2016-05-25 20:39:09 +0200 | [diff] [blame] | 479 | psa5: <vim.Function 'SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}> |
| 480 | psa6: <vim.Function 'SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}> |
| 481 | psa7: <vim.Function 'SelfArgs', args=['abcArgsPSA7']> |
| 482 | psa8: <vim.Function 'SelfArgs'> |
| 483 | psa9: <vim.Function 'SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True> |
| 484 | psaA: <vim.Function 'SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto_rebind=True> |
| 485 | psaB: <vim.Function 'SelfArgs', args=['abcArgsPSAB']> |
| 486 | psaC: <vim.Function 'SelfArgs'> |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 487 | 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': [{...}]}> |
| 488 | s(a): function('Args') |
| 489 | s(pa1): function('Args', ['abcArgsPA1']) |
| 490 | s(pa2): function('Args') |
| 491 | s(pa3): function('Args', ['abcArgsPA3'], {'abcSelfPA3': 'abcSelfPA3Val'}) |
| 492 | s(pa4): function('Args', {'abcSelfPA4': 'abcSelfPA4Val'}) |
| 493 | s(sa): function('SelfArgs') |
| 494 | s(psa1): function('SelfArgs', ['abcArgsPSA1']) |
| 495 | s(psa2): function('SelfArgs') |
| 496 | s(psa3): function('SelfArgs', ['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}) |
| 497 | s(psa4): function('SelfArgs', {'abcSelfPSA4': 'abcSelfPSA4Val'}) |
Bram Moolenaar | 2177f9f | 2016-05-25 20:39:09 +0200 | [diff] [blame] | 498 | s(psa5): function('SelfArgs', {'abcSelfPSA5': 'abcSelfPSA5Val'}) |
| 499 | s(psa6): function('SelfArgs', ['abcArgsPSA6'], {'abcSelfPSA6': 'abcSelfPSA6Val'}) |
| 500 | s(psa7): function('SelfArgs', ['abcArgsPSA7']) |
| 501 | s(psa8): function('SelfArgs') |
| 502 | s(psa9): function('SelfArgs', {'abcSelfPSA9': 'abcSelfPSA9Val'}) |
| 503 | s(psaA): function('SelfArgs', ['abcArgsPSAA'], {'abcSelfPSAA': 'abcSelfPSAAVal'}) |
| 504 | s(psaB): function('SelfArgs', ['abcArgsPSAB']) |
| 505 | s(psaC): function('SelfArgs') |
| 506 | d.sa(): [[], {'f': function('SelfArgs')}] |
| 507 | d.psa1(): [['abcArgsPSA1'], {'f': function('SelfArgs', ['abcArgsPSA1'])}] |
| 508 | d.psa2(): [[], {'f': function('SelfArgs')}] |
| 509 | d.psa3(): [['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}] |
| 510 | d.psa4(): [[], {'abcSelfPSA4': 'abcSelfPSA4Val'}] |
| 511 | d.psa5(): [[], {'abcSelfPSA5': 'abcSelfPSA5Val'}] |
| 512 | d.psa6(): [['abcArgsPSA6'], {'abcSelfPSA6': 'abcSelfPSA6Val'}] |
| 513 | d.psa7(): [['abcArgsPSA7'], {'f': function('SelfArgs', ['abcArgsPSA7'])}] |
| 514 | d.psa8(): [[], {'f': function('SelfArgs')}] |
| 515 | d.psa9(): [[], {'f': function('SelfArgs', {'abcSelfPSA9': 'abcSelfPSA9Val'})}] |
| 516 | d.psaA(): [['abcArgsPSAA'], {'f': function('SelfArgs', ['abcArgsPSAA'], {'abcSelfPSAA': 'abcSelfPSAAVal'})}] |
| 517 | d.psaB(): [['abcArgsPSAB'], {'f': function('SelfArgs', ['abcArgsPSAB'])}] |
| 518 | d.psaC(): [[], {'f': function('SelfArgs')}] |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 519 | a(): !result: [] |
| 520 | pa1(): !result: ['abcArgsPA1'] |
| 521 | pa2(): !result: [] |
| 522 | pa3(): !result: ['abcArgsPA3'] |
| 523 | pa4(): !result: [] |
| 524 | sa(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 525 | psa1(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 526 | psa2(): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 527 | psa3(): !result: [['abcArgsPSA3'], {'abcSelfPSA3': 'abcSelfPSA3Val'}] |
| 528 | psa4(): !result: [[], {'abcSelfPSA4': 'abcSelfPSA4Val'}] |
| 529 | a(42, 43): !result: [42, 43] |
| 530 | pa1(42, 43): !result: ['abcArgsPA1', 42, 43] |
| 531 | pa2(42, 43): !result: [42, 43] |
| 532 | pa3(42, 43): !result: ['abcArgsPA3', 42, 43] |
| 533 | pa4(42, 43): !result: [42, 43] |
| 534 | sa(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 535 | psa1(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 536 | psa2(42, 43): !exception: error:('Vim:E725: Calling dict function without Dictionary: SelfArgs',) |
| 537 | psa3(42, 43): !result: [['abcArgsPSA3', 42, 43], {'abcSelfPSA3': 'abcSelfPSA3Val'}] |
| 538 | psa4(42, 43): !result: [[42, 43], {'abcSelfPSA4': 'abcSelfPSA4Val'}] |
| 539 | a(42, self={"20": 1}): !result: [42] |
| 540 | pa1(42, self={"20": 1}): !result: ['abcArgsPA1', 42] |
| 541 | pa2(42, self={"20": 1}): !result: [42] |
| 542 | pa3(42, self={"20": 1}): !result: ['abcArgsPA3', 42] |
| 543 | pa4(42, self={"20": 1}): !result: [42] |
| 544 | sa(42, self={"20": 1}): !result: [[42], {'20': 1}] |
| 545 | psa1(42, self={"20": 1}): !result: [['abcArgsPSA1', 42], {'20': 1}] |
| 546 | psa2(42, self={"20": 1}): !result: [[42], {'20': 1}] |
| 547 | psa3(42, self={"20": 1}): !result: [['abcArgsPSA3', 42], {'20': 1}] |
| 548 | psa4(42, self={"20": 1}): !result: [[42], {'20': 1}] |
| 549 | a(self={"20": 1}): !result: [] |
| 550 | pa1(self={"20": 1}): !result: ['abcArgsPA1'] |
| 551 | pa2(self={"20": 1}): !result: [] |
| 552 | pa3(self={"20": 1}): !result: ['abcArgsPA3'] |
| 553 | pa4(self={"20": 1}): !result: [] |
| 554 | sa(self={"20": 1}): !result: [[], {'20': 1}] |
| 555 | psa1(self={"20": 1}): !result: [['abcArgsPSA1'], {'20': 1}] |
| 556 | psa2(self={"20": 1}): !result: [[], {'20': 1}] |
| 557 | psa3(self={"20": 1}): !result: [['abcArgsPSA3'], {'20': 1}] |
| 558 | psa4(self={"20": 1}): !result: [[], {'20': 1}] |
| 559 | a.args: None |
| 560 | pa1.args: ['abcArgsPA1'] |
| 561 | pa2.args: None |
| 562 | pa3.args: ['abcArgsPA3'] |
| 563 | pa4.args: None |
| 564 | sa.args: None |
| 565 | psa1.args: ['abcArgsPSA1'] |
| 566 | psa2.args: None |
| 567 | psa3.args: ['abcArgsPSA3'] |
| 568 | psa4.args: None |
| 569 | a.self: None |
| 570 | pa1.self: None |
| 571 | pa2.self: None |
| 572 | pa3.self: {'abcSelfPA3': 'abcSelfPA3Val'} |
| 573 | pa4.self: {'abcSelfPA4': 'abcSelfPA4Val'} |
| 574 | sa.self: None |
| 575 | psa1.self: None |
| 576 | psa2.self: None |
| 577 | psa3.self: {'abcSelfPSA3': 'abcSelfPSA3Val'} |
| 578 | psa4.self: {'abcSelfPSA4': 'abcSelfPSA4Val'} |
| 579 | a.name: 'Args' |
| 580 | pa1.name: 'Args' |
| 581 | pa2.name: 'Args' |
| 582 | pa3.name: 'Args' |
| 583 | pa4.name: 'Args' |
| 584 | sa.name: 'SelfArgs' |
| 585 | psa1.name: 'SelfArgs' |
| 586 | psa2.name: 'SelfArgs' |
| 587 | psa3.name: 'SelfArgs' |
| 588 | psa4.name: 'SelfArgs' |
Bram Moolenaar | 2177f9f | 2016-05-25 20:39:09 +0200 | [diff] [blame] | 589 | a.auto_rebind: 1 |
| 590 | pa1.auto_rebind: 1 |
| 591 | pa2.auto_rebind: 1 |
| 592 | pa3.auto_rebind: 0 |
| 593 | pa4.auto_rebind: 0 |
| 594 | sa.auto_rebind: 1 |
| 595 | psa1.auto_rebind: 1 |
| 596 | psa2.auto_rebind: 1 |
| 597 | psa3.auto_rebind: 0 |
| 598 | psa4.auto_rebind: 0 |
| 599 | psa5.auto_rebind: 0 |
| 600 | psa6.auto_rebind: 0 |
| 601 | psa7.auto_rebind: 1 |
| 602 | psa8.auto_rebind: 1 |
| 603 | psa9.auto_rebind: 1 |
| 604 | psaA.auto_rebind: 1 |
| 605 | psaB.auto_rebind: 1 |
| 606 | psaC.auto_rebind: 1 |
Bram Moolenaar | 01a7a72 | 2013-05-30 12:26:58 +0200 | [diff] [blame] | 607 | ' |
| 608 | abcdef |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 609 | Error detected while processing function RunTest[]..Test: |
| 610 | line : |
Bram Moolenaar | 01a7a72 | 2013-05-30 12:26:58 +0200 | [diff] [blame] | 611 | abcdef |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 612 | abcA |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 613 | line : |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 614 | abcB' |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 615 | ['a', 'dup_a'] |
Bram Moolenaar | 78cddbe | 2013-05-30 13:05:58 +0200 | [diff] [blame] | 616 | ['a', 'a'] |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 617 | ['a', 'b', 'c', 'C'] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 618 | [2, 2] |
| 619 | [2, 2] |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 620 | 1 |
| 621 | 1 |
| 622 | function('Put') |
Bram Moolenaar | f425830 | 2013-06-02 18:20:17 +0200 | [diff] [blame] | 623 | testdir |
| 624 | test86.in |
| 625 | src |
| 626 | testdir/test86.in |
| 627 | testdir |
| 628 | test86.in |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 629 | > Output |
| 630 | >> OutputSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 631 | del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 632 | >>> Testing NumberToLong using sys.stdout.softspace = %s |
Bram Moolenaar | 141be8a | 2013-06-23 14:16:57 +0200 | [diff] [blame] | 633 | 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] | 634 | sys.stdout.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',) |
| 635 | sys.stdout.softspace = -1:ValueError:('number must be greater or equal to zero',) |
| 636 | <<< Finished |
| 637 | >>> Testing NumberToLong using sys.stderr.softspace = %s |
| 638 | sys.stderr.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',) |
| 639 | sys.stderr.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',) |
| 640 | sys.stderr.softspace = -1:ValueError:('number must be greater or equal to zero',) |
| 641 | <<< Finished |
Bram Moolenaar | d424747 | 2015-11-02 13:28:59 +0100 | [diff] [blame] | 642 | assert sys.stdout.isatty()==False:NOT FAILED |
| 643 | assert sys.stdout.seekable()==False:NOT FAILED |
| 644 | sys.stdout.close():NOT FAILED |
| 645 | sys.stdout.flush():NOT FAILED |
| 646 | assert sys.stderr.isatty()==False:NOT FAILED |
| 647 | assert sys.stderr.seekable()==False:NOT FAILED |
| 648 | sys.stderr.close():NOT FAILED |
| 649 | sys.stderr.flush():NOT FAILED |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 650 | sys.stdout.attr = None:AttributeError:('invalid attribute: attr',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 651 | >> OutputWrite |
Bram Moolenaar | d424747 | 2015-11-02 13:28:59 +0100 | [diff] [blame] | 652 | assert sys.stdout.writable()==True:NOT FAILED |
| 653 | assert sys.stdout.readable()==False:NOT FAILED |
| 654 | assert sys.stderr.writable()==True:NOT FAILED |
| 655 | assert sys.stderr.readable()==False:NOT FAILED |
Bram Moolenaar | 6d4431e | 2016-04-21 20:00:56 +0200 | [diff] [blame] | 656 | assert sys.stdout.closed()==False:NOT FAILED |
| 657 | assert sys.stderr.closed()==False:NOT FAILED |
| 658 | assert sys.stdout.errors=="strict":NOT FAILED |
| 659 | assert sys.stderr.errors=="strict":NOT FAILED |
| 660 | assert sys.stdout.encoding==sys.stderr.encoding:NOT FAILED |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 661 | 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] | 662 | >> OutputWriteLines |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 663 | sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",) |
Bram Moolenaar | 6c85e7f | 2013-06-23 12:51:32 +0200 | [diff] [blame] | 664 | 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] | 665 | >>> Testing *Iter* using sys.stdout.writelines(%s) |
| 666 | sys.stdout.writelines(FailingIter()):NotImplementedError:('iter',) |
| 667 | sys.stdout.writelines(FailingIterNext()):NotImplementedError:('next',) |
| 668 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 669 | > VimCommand |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 670 | >>> Testing StringToChars using vim.command(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 671 | vim.command(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 672 | vim.command(u"\0"):TypeError:('expected string without null bytes',) |
| 673 | vim.command("\0"):TypeError:('expected string without null bytes',) |
| 674 | <<< Finished |
| 675 | vim.command("", 2):TypeError:('command() takes exactly one argument (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 676 | > VimToPython |
| 677 | > VimEval |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 678 | >>> Testing StringToChars using vim.eval(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 679 | vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 680 | vim.eval(u"\0"):TypeError:('expected string without null bytes',) |
| 681 | vim.eval("\0"):TypeError:('expected string without null bytes',) |
| 682 | <<< Finished |
| 683 | vim.eval("", FailingTrue()):TypeError:('function takes exactly 1 argument (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 684 | > VimEvalPy |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 685 | >>> Testing StringToChars using vim.bindeval(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 686 | vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 687 | vim.bindeval(u"\0"):TypeError:('expected string without null bytes',) |
| 688 | vim.bindeval("\0"):TypeError:('expected string without null bytes',) |
| 689 | <<< Finished |
| 690 | vim.eval("", 2):TypeError:('function takes exactly 1 argument (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 691 | > VimStrwidth |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 692 | >>> Testing StringToChars using vim.strwidth(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 693 | vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 694 | vim.strwidth(u"\0"):TypeError:('expected string without null bytes',) |
| 695 | vim.strwidth("\0"):TypeError:('expected string without null bytes',) |
| 696 | <<< Finished |
| 697 | > VimForeachRTP |
| 698 | vim.foreach_rtp(None):TypeError:("'NoneType' object is not callable",) |
| 699 | vim.foreach_rtp(NoArgsCall()):TypeError:('__call__() takes exactly 1 argument (2 given)',) |
| 700 | vim.foreach_rtp(FailingCall()):NotImplementedError:('call',) |
| 701 | vim.foreach_rtp(int, 2):TypeError:('foreach_rtp() takes exactly one argument (2 given)',) |
| 702 | > import |
| 703 | import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',) |
| 704 | import failing_import:ImportError:('No module named failing_import',) |
Bram Moolenaar | 7e85d3d | 2013-06-23 16:40:39 +0200 | [diff] [blame] | 705 | import failing:NotImplementedError:() |
Bram Moolenaar | 1028f4d | 2014-01-14 16:55:00 +0100 | [diff] [blame] | 706 | > Options |
| 707 | >> OptionsItem |
| 708 | vim.options["abcQ"]:KeyError:('abcQ',) |
| 709 | vim.options[""]:ValueError:('empty keys are not allowed',) |
| 710 | >>> Testing StringToChars using vim.options[%s] |
| 711 | vim.options[1]:TypeError:('expected str() or unicode() instance, but got int',) |
| 712 | vim.options[u"\0"]:TypeError:('expected string without null bytes',) |
| 713 | vim.options["\0"]:TypeError:('expected string without null bytes',) |
| 714 | <<< Finished |
| 715 | >> OptionsContains |
| 716 | >>> Testing StringToChars using %s in vim.options |
| 717 | 1 in vim.options:TypeError:('expected str() or unicode() instance, but got int',) |
| 718 | u"\0" in vim.options:TypeError:('expected string without null bytes',) |
| 719 | "\0" in vim.options:TypeError:('expected string without null bytes',) |
| 720 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 721 | > Dictionary |
| 722 | >> DictionaryConstructor |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 723 | 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] | 724 | >> DictionarySetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 725 | del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 726 | d.locked = FailingTrue():NotImplementedError:('bool',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 727 | vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 728 | d.scope = True:AttributeError:('cannot set attribute scope',) |
| 729 | d.xxx = True:AttributeError:('cannot set attribute xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 730 | >> _DictionaryItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 731 | 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] | 732 | >>> Testing StringToChars using d.get(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 733 | d.get(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 734 | d.get(u"\0"):TypeError:('expected string without null bytes',) |
| 735 | d.get("\0"):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 736 | <<< Finished |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 737 | d.pop("a"):KeyError:('a',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 738 | dl.pop("a"):error:('dictionary is locked',) |
Bram Moolenaar | ba2d7ff | 2013-11-04 00:34:53 +0100 | [diff] [blame] | 739 | >> DictionaryContains |
| 740 | "" in d:ValueError:('empty keys are not allowed',) |
| 741 | 0 in d:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 742 | >> DictionaryIterNext |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 743 | for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 744 | >> DictionaryAssItem |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 745 | dl["b"] = 1:error:('dictionary is locked',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 746 | >>> Testing StringToChars using d[%s] = 1 |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 747 | d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 748 | d[u"\0"] = 1:TypeError:('expected string without null bytes',) |
| 749 | d["\0"] = 1:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 750 | <<< Finished |
| 751 | >>> Testing StringToChars using d["a"] = {%s : 1} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 752 | 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] | 753 | d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',) |
| 754 | d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 755 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 756 | >>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}} |
| 757 | d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',) |
| 758 | d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',) |
| 759 | d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 760 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 761 | >>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})} |
| 762 | d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',) |
| 763 | d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',) |
| 764 | d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 765 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 766 | >>> Testing *Iter* using d["a"] = {"abcF" : %s} |
| 767 | d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 768 | d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 769 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 770 | >>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s} |
| 771 | d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',) |
| 772 | d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',) |
| 773 | d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 774 | d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:('keys',) |
| 775 | d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:('getitem:mappingkey',) |
| 776 | 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] | 777 | <<< Finished |
| 778 | >>> Testing StringToChars using d["a"] = Mapping({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 779 | 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] | 780 | d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 781 | d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 782 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 783 | >>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}}) |
| 784 | d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
| 785 | d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 786 | d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 787 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 788 | >>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})}) |
| 789 | d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
| 790 | d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 791 | 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] | 792 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 793 | >>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s}) |
| 794 | 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] | 795 | d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 796 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 797 | >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s}) |
| 798 | d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',) |
| 799 | d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 800 | d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 801 | d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:('keys',) |
| 802 | d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',) |
| 803 | 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] | 804 | <<< Finished |
| 805 | >>> Testing *Iter* using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 806 | d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 807 | d["a"] = FailingIterNext():NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 808 | <<< Finished |
| 809 | >>> Testing ConvertFromPyObject using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 810 | d["a"] = None:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 811 | d["a"] = {"": 1}:ValueError:('empty keys are not allowed',) |
| 812 | d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 813 | d["a"] = FailingMapping():NotImplementedError:('keys',) |
| 814 | d["a"] = FailingMappingKey():NotImplementedError:('getitem:mappingkey',) |
| 815 | 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] | 816 | <<< Finished |
| 817 | >> DictionaryUpdate |
| 818 | >>> kwargs |
| 819 | >>> iter |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 820 | d.update(FailingMapping()):NotImplementedError:('keys',) |
| 821 | d.update([FailingIterNext()]):NotImplementedError:('next',) |
Bram Moolenaar | 063a46b | 2014-01-14 16:36:51 +0100 | [diff] [blame] | 822 | d.update([FailingIterNextN(1)]):NotImplementedError:('next N',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 823 | >>> Testing *Iter* using d.update(%s) |
| 824 | d.update(FailingIter()):NotImplementedError:('iter',) |
| 825 | d.update(FailingIterNext()):NotImplementedError:('next',) |
| 826 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 827 | >>> Testing StringToChars using d.update({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 828 | 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] | 829 | d.update({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 830 | d.update({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 831 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 832 | >>> Testing StringToChars using d.update({"abcF" : {%s : 1}}) |
| 833 | d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
| 834 | d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 835 | d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 836 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 837 | >>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})}) |
| 838 | d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
| 839 | d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 840 | d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 841 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 842 | >>> Testing *Iter* using d.update({"abcF" : %s}) |
| 843 | d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 844 | d.update({"abcF" : FailingIterNext()}):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 845 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 846 | >>> Testing ConvertFromPyObject using d.update({"abcF" : %s}) |
| 847 | d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',) |
| 848 | d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 849 | d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 850 | d.update({"abcF" : FailingMapping()}):NotImplementedError:('keys',) |
| 851 | d.update({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',) |
| 852 | 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] | 853 | <<< Finished |
| 854 | >>> Testing StringToChars using d.update(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 855 | 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] | 856 | d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 857 | d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 858 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 859 | >>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}})) |
| 860 | d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
| 861 | d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 862 | d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 863 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 864 | >>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})})) |
| 865 | d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
| 866 | d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 867 | 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] | 868 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 869 | >>> Testing *Iter* using d.update(Mapping({"abcG" : %s})) |
| 870 | 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] | 871 | d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 872 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 873 | >>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s})) |
| 874 | d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',) |
| 875 | d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 876 | d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 877 | d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',) |
| 878 | d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',) |
| 879 | 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] | 880 | <<< Finished |
| 881 | >>> Testing *Iter* using d.update(%s) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 882 | d.update(FailingIter()):NotImplementedError:('iter',) |
| 883 | d.update(FailingIterNext()):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 884 | <<< Finished |
| 885 | >>> Testing ConvertFromPyObject using d.update(%s) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 886 | d.update(None):TypeError:("'NoneType' object is not iterable",) |
| 887 | d.update({"": 1}):ValueError:('empty keys are not allowed',) |
| 888 | d.update({u"": 1}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 889 | d.update(FailingMapping()):NotImplementedError:('keys',) |
| 890 | d.update(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',) |
| 891 | d.update(FailingNumber()):TypeError:("'FailingNumber' object is not iterable",) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 892 | <<< Finished |
| 893 | >>> Testing StringToChars using d.update(((%s, 0),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 894 | 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] | 895 | d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',) |
| 896 | d.update((("\0", 0),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 897 | <<< Finished |
| 898 | >>> Testing StringToChars using d.update((("a", {%s : 1}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 899 | 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] | 900 | d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',) |
| 901 | d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 902 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 903 | >>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),)) |
| 904 | d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',) |
| 905 | d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',) |
| 906 | d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 907 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 908 | >>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),)) |
| 909 | d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',) |
| 910 | d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',) |
| 911 | 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] | 912 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 913 | >>> Testing *Iter* using d.update((("a", {"abcF" : %s}),)) |
| 914 | 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] | 915 | d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 916 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 917 | >>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),)) |
| 918 | d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',) |
| 919 | d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',) |
| 920 | d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 921 | d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:('keys',) |
| 922 | d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:('getitem:mappingkey',) |
| 923 | 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] | 924 | <<< Finished |
| 925 | >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 926 | 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] | 927 | d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',) |
| 928 | d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 929 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 930 | >>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),)) |
| 931 | d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',) |
| 932 | d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',) |
| 933 | 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] | 934 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 935 | >>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),)) |
| 936 | d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',) |
| 937 | d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',) |
| 938 | 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] | 939 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 940 | >>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),)) |
| 941 | 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] | 942 | d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 943 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 944 | >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),)) |
| 945 | d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',) |
| 946 | d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',) |
| 947 | 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] | 948 | d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:('keys',) |
| 949 | d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:('getitem:mappingkey',) |
| 950 | 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] | 951 | <<< Finished |
| 952 | >>> Testing *Iter* using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 953 | d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 954 | d.update((("a", FailingIterNext()),)):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 955 | <<< Finished |
| 956 | >>> Testing ConvertFromPyObject using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 957 | d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 958 | d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',) |
| 959 | d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 960 | d.update((("a", FailingMapping()),)):NotImplementedError:('keys',) |
| 961 | d.update((("a", FailingMappingKey()),)):NotImplementedError:('getitem:mappingkey',) |
| 962 | 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] | 963 | <<< Finished |
| 964 | >> DictionaryPopItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 965 | d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 966 | >> DictionaryHasKey |
Bram Moolenaar | 389a179 | 2013-06-23 13:00:44 +0200 | [diff] [blame] | 967 | d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 968 | > List |
| 969 | >> ListConstructor |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 970 | vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',) |
| 971 | vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 972 | >>> Testing *Iter* using vim.List(%s) |
| 973 | vim.List(FailingIter()):NotImplementedError:('iter',) |
| 974 | vim.List(FailingIterNext()):NotImplementedError:('next',) |
| 975 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 976 | >>> Testing StringToChars using vim.List([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 977 | 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] | 978 | vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',) |
| 979 | vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 980 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 981 | >>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}]) |
| 982 | vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',) |
| 983 | vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',) |
| 984 | vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 985 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 986 | >>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}]) |
| 987 | vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',) |
| 988 | vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',) |
| 989 | vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 990 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 991 | >>> Testing *Iter* using vim.List([{"abcF" : %s}]) |
| 992 | vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 993 | vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 994 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 995 | >>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}]) |
| 996 | vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',) |
| 997 | vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',) |
| 998 | vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 999 | vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',) |
| 1000 | vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',) |
| 1001 | 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] | 1002 | <<< Finished |
| 1003 | >>> Testing StringToChars using vim.List([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1004 | 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] | 1005 | vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',) |
| 1006 | vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1007 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1008 | >>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})]) |
| 1009 | vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1010 | vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',) |
| 1011 | vim.List([Mapping({"abcG" : {"\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 vim.List([Mapping({"abcG" : Mapping({%s : 1})})]) |
| 1014 | vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1015 | vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',) |
| 1016 | 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] | 1017 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1018 | >>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})]) |
| 1019 | 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] | 1020 | vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1021 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1022 | >>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})]) |
| 1023 | vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',) |
| 1024 | vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',) |
| 1025 | vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1026 | vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',) |
| 1027 | vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',) |
| 1028 | 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] | 1029 | <<< Finished |
| 1030 | >>> Testing *Iter* using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1031 | vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1032 | vim.List([FailingIterNext()]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1033 | <<< Finished |
| 1034 | >>> Testing ConvertFromPyObject using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1035 | vim.List([None]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1036 | vim.List([{"": 1}]):ValueError:('empty keys are not allowed',) |
| 1037 | vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1038 | vim.List([FailingMapping()]):NotImplementedError:('keys',) |
| 1039 | vim.List([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',) |
| 1040 | 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] | 1041 | <<< Finished |
| 1042 | >> ListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1043 | l[1000]:IndexError:('list index out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1044 | >> ListAssItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1045 | ll[1] = 2:error:('list is locked',) |
| 1046 | l[1000] = 3:IndexError:('list index out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1047 | >> ListAssSlice |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1048 | ll[1:100] = "abcJ":error:('list is locked',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1049 | >>> Testing *Iter* using l[:] = %s |
| 1050 | l[:] = FailingIter():NotImplementedError:('iter',) |
| 1051 | l[:] = FailingIterNext():NotImplementedError:('next',) |
| 1052 | <<< Finished |
Bram Moolenaar | 038e5d4 | 2014-03-12 15:26:40 +0100 | [diff] [blame] | 1053 | 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] | 1054 | ('a', 'b', 'c', 'O') |
| 1055 | nel[1:10:2] = "a":ValueError:('attempt to assign sequence of size 1 to extended slice of size 2',) |
| 1056 | ('a', 'b', 'c', 'O') |
Bram Moolenaar | 038e5d4 | 2014-03-12 15:26:40 +0100 | [diff] [blame] | 1057 | 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] | 1058 | ('a', 'b', 'c', 'O') |
| 1059 | nel[:] = FailingIterNextN(2):NotImplementedError:('next N',) |
| 1060 | ('a', 'b', 'c', 'O') |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1061 | >>> Testing StringToChars using l[:] = [{%s : 1}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1062 | l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1063 | l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',) |
| 1064 | l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1065 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1066 | >>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}] |
| 1067 | l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',) |
| 1068 | l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',) |
| 1069 | l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1070 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1071 | >>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}] |
| 1072 | l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',) |
| 1073 | l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',) |
| 1074 | l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1075 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1076 | >>> Testing *Iter* using l[:] = [{"abcF" : %s}] |
| 1077 | l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1078 | l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1079 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1080 | >>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}] |
| 1081 | l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',) |
| 1082 | l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',) |
| 1083 | l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1084 | l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:('keys',) |
| 1085 | l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:('getitem:mappingkey',) |
| 1086 | 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] | 1087 | <<< Finished |
| 1088 | >>> Testing StringToChars using l[:] = [Mapping({%s : 1})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1089 | 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] | 1090 | l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',) |
| 1091 | l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1092 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1093 | >>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})] |
| 1094 | l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',) |
| 1095 | l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',) |
| 1096 | l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',) |
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 StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})] |
| 1099 | l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',) |
| 1100 | l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',) |
| 1101 | l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1102 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1103 | >>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})] |
| 1104 | l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1105 | l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1106 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1107 | >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})] |
| 1108 | l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',) |
| 1109 | l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',) |
| 1110 | l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1111 | l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:('keys',) |
| 1112 | l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:('getitem:mappingkey',) |
| 1113 | 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] | 1114 | <<< Finished |
| 1115 | >>> Testing *Iter* using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1116 | l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1117 | l[:] = [FailingIterNext()]:NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1118 | <<< Finished |
| 1119 | >>> Testing ConvertFromPyObject using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1120 | l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1121 | l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',) |
| 1122 | l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1123 | l[:] = [FailingMapping()]:NotImplementedError:('keys',) |
| 1124 | l[:] = [FailingMappingKey()]:NotImplementedError:('getitem:mappingkey',) |
| 1125 | l[:] = [FailingNumber()]:TypeError:('long() argument must be a string or a number',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1126 | <<< Finished |
| 1127 | >> ListConcatInPlace |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1128 | >>> Testing *Iter* using l.extend(%s) |
| 1129 | l.extend(FailingIter()):NotImplementedError:('iter',) |
| 1130 | l.extend(FailingIterNext()):NotImplementedError:('next',) |
| 1131 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1132 | >>> Testing StringToChars using l.extend([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1133 | 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] | 1134 | l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',) |
| 1135 | l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1136 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1137 | >>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}]) |
| 1138 | l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1139 | l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',) |
| 1140 | l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1141 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1142 | >>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}]) |
| 1143 | l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1144 | l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',) |
| 1145 | l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1146 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1147 | >>> Testing *Iter* using l.extend([{"abcF" : %s}]) |
| 1148 | l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1149 | l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1150 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1151 | >>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}]) |
| 1152 | l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',) |
| 1153 | l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',) |
| 1154 | l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1155 | l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',) |
| 1156 | l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',) |
| 1157 | 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] | 1158 | <<< Finished |
| 1159 | >>> Testing StringToChars using l.extend([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1160 | 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] | 1161 | l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',) |
| 1162 | l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1163 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1164 | >>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})]) |
| 1165 | l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1166 | l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',) |
| 1167 | l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1168 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1169 | >>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})]) |
| 1170 | l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',) |
| 1171 | l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',) |
| 1172 | 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] | 1173 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1174 | >>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})]) |
| 1175 | 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] | 1176 | l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1177 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1178 | >>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})]) |
| 1179 | l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',) |
| 1180 | l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',) |
| 1181 | l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1182 | l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',) |
| 1183 | l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',) |
| 1184 | 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] | 1185 | <<< Finished |
| 1186 | >>> Testing *Iter* using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1187 | l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1188 | l.extend([FailingIterNext()]):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1189 | <<< Finished |
| 1190 | >>> Testing ConvertFromPyObject using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1191 | l.extend([None]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1192 | l.extend([{"": 1}]):ValueError:('empty keys are not allowed',) |
| 1193 | l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1194 | l.extend([FailingMapping()]):NotImplementedError:('keys',) |
| 1195 | l.extend([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',) |
| 1196 | 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] | 1197 | <<< Finished |
| 1198 | >> ListSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1199 | del l.locked:AttributeError:('cannot delete vim.List attributes',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1200 | l.locked = FailingTrue():NotImplementedError:('bool',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1201 | l.xxx = True:AttributeError:('cannot set attribute xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1202 | > Function |
| 1203 | >> FunctionConstructor |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 1204 | >>> FunctionConstructor |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1205 | vim.Function("123"):ValueError:('unnamed function 123 does not exist',) |
| 1206 | 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] | 1207 | vim.Function("xxx#non#existent#function#xxx"):NOT FAILED |
Bram Moolenaar | 8110a09 | 2016-04-14 15:56:09 +0200 | [diff] [blame] | 1208 | vim.Function("xxx_non_existent_function_xxx2", args=[]):ValueError:('function xxx_non_existent_function_xxx2 does not exist',) |
| 1209 | vim.Function("xxx_non_existent_function_xxx3", self={}):ValueError:('function xxx_non_existent_function_xxx3 does not exist',) |
| 1210 | vim.Function("xxx_non_existent_function_xxx4", args=[], self={}):ValueError:('function xxx_non_existent_function_xxx4 does not exist',) |
| 1211 | >>> FunctionNew |
| 1212 | vim.Function("tr", self="abcFuncSelf"):TypeError:('unable to convert str to vim dictionary',) |
| 1213 | vim.Function("tr", args=427423):TypeError:('unable to convert int to vim list',) |
| 1214 | vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str to vim dictionary',) |
| 1215 | vim.Function(self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str to vim dictionary',) |
| 1216 | vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str to vim dictionary',) |
| 1217 | vim.Function("tr", ""):TypeError:('function takes exactly 1 argument (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1218 | >> FunctionCall |
| 1219 | >>> Testing StringToChars using f({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1220 | f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1221 | f({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 1222 | f({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1223 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1224 | >>> Testing StringToChars using f({"abcF" : {%s : 1}}) |
| 1225 | f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
| 1226 | f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 1227 | f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1228 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1229 | >>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})}) |
| 1230 | f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
| 1231 | f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 1232 | f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1233 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1234 | >>> Testing *Iter* using f({"abcF" : %s}) |
| 1235 | f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1236 | f({"abcF" : FailingIterNext()}):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1237 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1238 | >>> Testing ConvertFromPyObject using f({"abcF" : %s}) |
| 1239 | f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',) |
| 1240 | f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 1241 | f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1242 | f({"abcF" : FailingMapping()}):NotImplementedError:('keys',) |
| 1243 | f({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',) |
| 1244 | 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] | 1245 | <<< Finished |
| 1246 | >>> Testing StringToChars using f(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1247 | 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] | 1248 | f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 1249 | f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
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 StringToChars using f(Mapping({"abcG" : {%s : 1}})) |
| 1252 | f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
| 1253 | f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 1254 | f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1255 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1256 | >>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})})) |
| 1257 | f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
| 1258 | f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 1259 | f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1260 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1261 | >>> Testing *Iter* using f(Mapping({"abcG" : %s})) |
| 1262 | f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1263 | f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1264 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1265 | >>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s})) |
| 1266 | f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',) |
| 1267 | f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 1268 | f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1269 | f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',) |
| 1270 | f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',) |
| 1271 | 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] | 1272 | <<< Finished |
| 1273 | >>> Testing *Iter* using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1274 | f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1275 | f(FailingIterNext()):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1276 | <<< Finished |
| 1277 | >>> Testing ConvertFromPyObject using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1278 | f(None):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1279 | f({"": 1}):ValueError:('empty keys are not allowed',) |
| 1280 | f({u"": 1}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1281 | f(FailingMapping()):NotImplementedError:('keys',) |
| 1282 | f(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',) |
| 1283 | f(FailingNumber()):TypeError:('long() argument must be a string or a number',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1284 | <<< Finished |
| 1285 | >>> Testing StringToChars using fd(self={%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1286 | 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] | 1287 | fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 1288 | fd(self={"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1289 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1290 | >>> Testing StringToChars using fd(self={"abcF" : {%s : 1}}) |
| 1291 | fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
| 1292 | fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 1293 | fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1294 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1295 | >>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})}) |
| 1296 | fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
| 1297 | fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 1298 | fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1299 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1300 | >>> Testing *Iter* using fd(self={"abcF" : %s}) |
| 1301 | fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1302 | fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1303 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1304 | >>> Testing ConvertFromPyObject using fd(self={"abcF" : %s}) |
| 1305 | fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',) |
| 1306 | fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 1307 | fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1308 | fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',) |
| 1309 | fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',) |
| 1310 | 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] | 1311 | <<< Finished |
| 1312 | >>> Testing StringToChars using fd(self=Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1313 | 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] | 1314 | fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 1315 | fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1316 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1317 | >>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}})) |
| 1318 | fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
| 1319 | fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 1320 | fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1321 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1322 | >>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})})) |
| 1323 | fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
| 1324 | fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 1325 | 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] | 1326 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1327 | >>> Testing *Iter* using fd(self=Mapping({"abcG" : %s})) |
| 1328 | 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] | 1329 | fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1330 | <<< Finished |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1331 | >>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s})) |
| 1332 | fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',) |
| 1333 | fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 1334 | fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1335 | fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',) |
| 1336 | fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',) |
| 1337 | 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] | 1338 | <<< Finished |
| 1339 | >>> Testing *Iter* using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1340 | fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',) |
| 1341 | fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1342 | <<< Finished |
| 1343 | >>> Testing ConvertFromPyObject using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1344 | fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1345 | fd(self={"": 1}):ValueError:('empty keys are not allowed',) |
| 1346 | fd(self={u"": 1}):ValueError:('empty keys are not allowed',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1347 | fd(self=FailingMapping()):NotImplementedError:('keys',) |
| 1348 | fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',) |
| 1349 | fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to vim dictionary',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1350 | <<< Finished |
| 1351 | >>> Testing ConvertFromPyMapping using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1352 | fd(self=[]):TypeError:('unable to convert list to vim dictionary',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1353 | <<< Finished |
| 1354 | > TabPage |
| 1355 | >> TabPageAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1356 | vim.current.tabpage.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1357 | > TabList |
| 1358 | >> TabListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1359 | vim.tabpages[1000]:IndexError:('no such tab page',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1360 | > Window |
| 1361 | >> WindowAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1362 | vim.current.window.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1363 | >> WindowSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1364 | vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1365 | vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',) |
| 1366 | 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] | 1367 | >>> Testing NumberToLong using vim.current.window.height = %s |
| 1368 | vim.current.window.height = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',) |
| 1369 | vim.current.window.height = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',) |
| 1370 | vim.current.window.height = -1:ValueError:('number must be greater or equal to zero',) |
| 1371 | <<< Finished |
| 1372 | >>> Testing NumberToLong using vim.current.window.width = %s |
| 1373 | vim.current.window.width = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',) |
| 1374 | vim.current.window.width = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',) |
| 1375 | vim.current.window.width = -1:ValueError:('number must be greater or equal to zero',) |
| 1376 | <<< Finished |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1377 | vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1378 | > WinList |
| 1379 | >> WinListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1380 | vim.windows[1000]:IndexError:('no such window',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1381 | > Buffer |
| 1382 | >> StringToLine (indirect) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1383 | vim.current.buffer[0] = u"\na":error:('string cannot contain newlines',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1384 | vim.current.buffer[0] = "\na":error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1385 | >> SetBufferLine (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1386 | 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] | 1387 | >> SetBufferLineList (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1388 | vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',) |
| 1389 | vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1390 | >> InsertBufferLines (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1391 | vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',) |
| 1392 | vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',) |
| 1393 | vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1394 | >> RBItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1395 | vim.current.buffer[100000000]:IndexError:('line number out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1396 | >> RBAsItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1397 | vim.current.buffer[100000000] = "":IndexError:('line number out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1398 | >> BufferAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1399 | vim.current.buffer.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1400 | >> BufferSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1401 | 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] | 1402 | vim.current.buffer.xxx = True:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1403 | >> BufferMark |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1404 | 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] | 1405 | 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] | 1406 | vim.current.buffer.mark("!"):error:('invalid mark name',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1407 | >> BufferRange |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1408 | 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] | 1409 | > BufMap |
| 1410 | >> BufMapItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1411 | vim.buffers[100000000]:KeyError:(100000000,) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1412 | >>> Testing NumberToLong using vim.buffers[%s] |
| 1413 | vim.buffers[[]]:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',) |
| 1414 | 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] | 1415 | vim.buffers[-1]:ValueError:('number must be greater than zero',) |
| 1416 | vim.buffers[0]:ValueError:('number must be greater than zero',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1417 | <<< Finished |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1418 | > Current |
| 1419 | >> CurrentGetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1420 | vim.current.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1421 | >> CurrentSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1422 | vim.current.line = True:TypeError:('bad argument type for built-in operation',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame] | 1423 | vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',) |
| 1424 | vim.current.window = True:TypeError:('expected vim.Window object, but got bool',) |
| 1425 | vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1426 | vim.current.xxx = True:AttributeError:('xxx',) |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1427 | ['/testdir'] |
| 1428 | '/testdir' |
Bram Moolenaar | a9f2220 | 2013-06-11 18:48:21 +0200 | [diff] [blame] | 1429 | 2,xx |
Bram Moolenaar | 9f3685a | 2013-06-12 14:20:36 +0200 | [diff] [blame] | 1430 | before |
| 1431 | after |
Bram Moolenaar | dee2e31 | 2013-06-23 16:35:47 +0200 | [diff] [blame] | 1432 | pythonx/topmodule/__init__.py |
| 1433 | pythonx/topmodule/submodule/__init__.py |
| 1434 | pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py |
Bram Moolenaar | 841fbd2 | 2013-06-23 14:37:07 +0200 | [diff] [blame] | 1435 | vim.command("throw 'abcN'"):error:('abcN',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1436 | Exe("throw 'def'"):error:('def',) |
| 1437 | vim.eval("Exe('throw ''ghi''')"):error:('ghi',) |
| 1438 | vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',) |
| 1439 | 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] | 1440 | 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] | 1441 | 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] | 1442 | Caught KeyboardInterrupt |
| 1443 | Running :put |
| 1444 | No exception |
| 1445 | |