summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-02 08:10:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-02 08:10:18 (GMT)
commitd556a352424c92d18ecfefdfeaf08db3ddf1c95f (patch)
tree97b0ab3c61c2922b6cc68a01e257a0e5f3e44f07
parent6498e5270e38ea9f7d868359fa6b29c8d613e77b (diff)
downloadcpython-d556a352424c92d18ecfefdfeaf08db3ddf1c95f.zip
cpython-d556a352424c92d18ecfefdfeaf08db3ddf1c95f.tar.gz
cpython-d556a352424c92d18ecfefdfeaf08db3ddf1c95f.tar.bz2
Issue #27358: Backported tests.
-rw-r--r--Lib/test/test_extcall.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py
index 420f122..015cdfc 100644
--- a/Lib/test/test_extcall.py
+++ b/Lib/test/test_extcall.py
@@ -254,6 +254,21 @@ not function
...
TypeError: h() argument after ** must be a mapping, not function
+ >>> h(**[])
+ Traceback (most recent call last):
+ ...
+ 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):
...