diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-07 20:32:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-07 20:32:41 (GMT) |
commit | 5665301baea21200771829516fc8edeec3b059b9 (patch) | |
tree | a80f7bd6be6a0db82c95ae2e90c56b6d419062d9 /Lib/test/test_extcall.py | |
parent | de0574bdabc1183706406b421dea2e3e3c165eb3 (diff) | |
download | cpython-5665301baea21200771829516fc8edeec3b059b9.zip cpython-5665301baea21200771829516fc8edeec3b059b9.tar.gz cpython-5665301baea21200771829516fc8edeec3b059b9.tar.bz2 |
Issue #28257: Improved error message when pass a non-mapping as a var-keyword
argument.
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 015cdfc..9cb0d38 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -269,6 +269,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): ... |