]> 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 420f12287b42082b84bbb92e950dd444bd54d8d4..015cdfcf1ac60430677c1a2149fc27db7d8dcd29 100644 (file)
@@ -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):
       ...