|
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})
|
|
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