]> granicus.if.org Git - python/commitdiff
Issue #27358: Backported tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 2 Oct 2016 08:10:18 +0000 (11:10 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 2 Oct 2016 08:10:18 +0000 (11:10 +0300)
Lib/test/test_extcall.py

index 6860751e578620cecc6664bd9cf103f33fe826fe..4aa2dfc2b57fd8466de4cde22be157a66d753374 100644 (file)
@@ -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):
       ...