|
52 | 52 | >>> f(1, 2, **{'a': -1, 'b': 5}, **{'a': 4, 'c': 6}) |
53 | 53 | Traceback (most recent call last): |
54 | 54 | ... |
55 | | - TypeError: f() got multiple values for keyword argument 'a' |
| 55 | + TypeError: test.test_extcall.f() got multiple values for keyword argument 'a' |
56 | 56 | >>> f(1, 2, **{'a': -1, 'b': 5}, a=4, c=6) |
57 | 57 | Traceback (most recent call last): |
58 | 58 | ... |
59 | | - TypeError: f() got multiple values for keyword argument 'a' |
| 59 | + TypeError: test.test_extcall.f() got multiple values for keyword argument 'a' |
60 | 60 | >>> f(1, 2, a=3, **{'a': 4}, **{'a': 5}) |
61 | 61 | Traceback (most recent call last): |
62 | 62 | ... |
63 | | - TypeError: f() got multiple values for keyword argument 'a' |
| 63 | + TypeError: test.test_extcall.f() got multiple values for keyword argument 'a' |
64 | 64 | >>> f(1, 2, 3, *[4, 5], **{'a':6, 'b':7}) |
65 | 65 | (1, 2, 3, 4, 5) {'a': 6, 'b': 7} |
66 | 66 | >>> f(1, 2, 3, x=4, y=5, *(6, 7), **{'a':8, 'b': 9}) |
|
118 | 118 | >>> g(*Nothing()) |
119 | 119 | Traceback (most recent call last): |
120 | 120 | ... |
121 | | - TypeError: g() argument after * must be an iterable, not Nothing |
| 121 | + TypeError: test.test_extcall.g() argument after * must be an iterable, not Nothing |
122 | 122 |
|
123 | 123 | >>> class Nothing: |
124 | 124 | ... def __len__(self): return 5 |
|
127 | 127 | >>> g(*Nothing()) |
128 | 128 | Traceback (most recent call last): |
129 | 129 | ... |
130 | | - TypeError: g() argument after * must be an iterable, not Nothing |
| 130 | + TypeError: test.test_extcall.g() argument after * must be an iterable, not Nothing |
131 | 131 |
|
132 | 132 | >>> class Nothing(): |
133 | 133 | ... def __len__(self): return 5 |
|
247 | 247 | >>> h(*h) |
248 | 248 | Traceback (most recent call last): |
249 | 249 | ... |
250 | | - TypeError: h() argument after * must be an iterable, not function |
| 250 | + TypeError: test.test_extcall.h() argument after * must be an iterable, not function |
251 | 251 |
|
252 | 252 | >>> h(1, *h) |
253 | 253 | Traceback (most recent call last): |
254 | 254 | ... |
255 | | - TypeError: h() argument after * must be an iterable, not function |
| 255 | + TypeError: test.test_extcall.h() argument after * must be an iterable, not function |
256 | 256 |
|
257 | 257 | >>> h(*[1], *h) |
258 | 258 | Traceback (most recent call last): |
259 | 259 | ... |
260 | | - TypeError: h() argument after * must be an iterable, not function |
| 260 | + TypeError: test.test_extcall.h() argument after * must be an iterable, not function |
261 | 261 |
|
262 | 262 | >>> dir(*h) |
263 | 263 | Traceback (most recent call last): |
|
268 | 268 | >>> nothing(*h) |
269 | 269 | Traceback (most recent call last): |
270 | 270 | ... |
271 | | - TypeError: NoneType object argument after * must be an iterable, \ |
| 271 | + TypeError: None argument after * must be an iterable, \ |
272 | 272 | not function |
273 | 273 |
|
274 | 274 | >>> h(**h) |
275 | 275 | Traceback (most recent call last): |
276 | 276 | ... |
277 | | - TypeError: h() argument after ** must be a mapping, not function |
| 277 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not function |
278 | 278 |
|
279 | 279 | >>> h(**[]) |
280 | 280 | Traceback (most recent call last): |
281 | 281 | ... |
282 | | - TypeError: h() argument after ** must be a mapping, not list |
| 282 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not list |
283 | 283 |
|
284 | 284 | >>> h(a=1, **h) |
285 | 285 | Traceback (most recent call last): |
286 | 286 | ... |
287 | | - TypeError: h() argument after ** must be a mapping, not function |
| 287 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not function |
288 | 288 |
|
289 | 289 | >>> h(a=1, **[]) |
290 | 290 | Traceback (most recent call last): |
291 | 291 | ... |
292 | | - TypeError: h() argument after ** must be a mapping, not list |
| 292 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not list |
293 | 293 |
|
294 | 294 | >>> h(**{'a': 1}, **h) |
295 | 295 | Traceback (most recent call last): |
296 | 296 | ... |
297 | | - TypeError: h() argument after ** must be a mapping, not function |
| 297 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not function |
298 | 298 |
|
299 | 299 | >>> h(**{'a': 1}, **[]) |
300 | 300 | Traceback (most recent call last): |
301 | 301 | ... |
302 | | - TypeError: h() argument after ** must be a mapping, not list |
| 302 | + TypeError: test.test_extcall.h() argument after ** must be a mapping, not list |
303 | 303 |
|
304 | 304 | >>> dir(**h) |
305 | 305 | Traceback (most recent call last): |
|
309 | 309 | >>> nothing(**h) |
310 | 310 | Traceback (most recent call last): |
311 | 311 | ... |
312 | | - TypeError: NoneType object argument after ** must be a mapping, \ |
| 312 | + TypeError: None argument after ** must be a mapping, \ |
313 | 313 | not function |
314 | 314 |
|
315 | 315 | >>> dir(b=1, **{'b': 1}) |
|
351 | 351 | >>> g(**MultiDict([('x', 1), ('x', 2)])) |
352 | 352 | Traceback (most recent call last): |
353 | 353 | ... |
354 | | - TypeError: g() got multiple values for keyword argument 'x' |
| 354 | + TypeError: test.test_extcall.g() got multiple values for keyword argument 'x' |
355 | 355 |
|
356 | 356 | >>> g(a=3, **MultiDict([('x', 1), ('x', 2)])) |
357 | 357 | Traceback (most recent call last): |
358 | 358 | ... |
359 | | - TypeError: g() got multiple values for keyword argument 'x' |
| 359 | + TypeError: test.test_extcall.g() got multiple values for keyword argument 'x' |
360 | 360 |
|
361 | 361 | >>> g(**MultiDict([('a', 3)]), **MultiDict([('x', 1), ('x', 2)])) |
362 | 362 | Traceback (most recent call last): |
363 | 363 | ... |
364 | | - TypeError: g() got multiple values for keyword argument 'x' |
| 364 | + TypeError: test.test_extcall.g() got multiple values for keyword argument 'x' |
365 | 365 |
|
366 | 366 | Another helper function |
367 | 367 |
|
|
0 commit comments