diff options
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 015cdfc..043df01 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -238,6 +238,11 @@ What about willful misconduct? ... TypeError: h() argument after * must be an iterable, not function + >>> h(*[1], *h) + Traceback (most recent call last): + ... + TypeError: h() argument after * must be an iterable, not function + >>> dir(*h) Traceback (most recent call last): ... @@ -269,6 +274,16 @@ not function ... TypeError: h() argument after ** must be a mapping, not list + >>> h(**{'a': 1}, **h) + Traceback (most recent call last): + ... + TypeError: h() argument after ** must be a mapping, not function + + >>> h(**{'a': 1}, **[]) + Traceback (most recent call last): + ... + TypeError: h() argument after ** must be a mapping, not list + >>> dir(**h) Traceback (most recent call last): ... |