summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_extcall.py
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)
commitb8a1a2707bb37eb68bc49b89d7eb00d9bb756b93 (patch)
tree5fd7fa7c27b79eb69bcecc9ae7cd3605f5dc21a1 /Lib/test/test_extcall.py
parent78b634d2261e62803f537e38698d618e5dbf9d8f (diff)
downloadcpython-b8a1a2707bb37eb68bc49b89d7eb00d9bb756b93.zip
cpython-b8a1a2707bb37eb68bc49b89d7eb00d9bb756b93.tar.gz
cpython-b8a1a2707bb37eb68bc49b89d7eb00d9bb756b93.tar.bz2
Issue #27358: Backported tests.
Diffstat (limited to 'Lib/test/test_extcall.py')
-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 6860751..4aa2dfc 100644
--- a/Lib/test/test_extcall.py
+++ b/Lib/test/test_extcall.py
@@ -201,6 +201,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):
...