summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_extcall.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-21 20:34:16 (GMT)
committerGeorg Brandl <georg@python.org>2007-05-21 20:34:16 (GMT)
commit2134e754f27462264c8da45110c580eb7b0b906f (patch)
tree8968da0c97423491b43d2134e0961ca5b915aa3e /Lib/test/test_extcall.py
parent70f996be24dd00c11500cd99d92e8b2a1dfaa501 (diff)
downloadcpython-2134e754f27462264c8da45110c580eb7b0b906f.zip
cpython-2134e754f27462264c8da45110c580eb7b0b906f.tar.gz
cpython-2134e754f27462264c8da45110c580eb7b0b906f.tar.bz2
Patch #1686487: you can now pass any mapping after '**' in function calls.
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r--Lib/test/test_extcall.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py
index 284dbb2..96d1bc1 100644
--- a/Lib/test/test_extcall.py
+++ b/Lib/test/test_extcall.py
@@ -1,5 +1,6 @@
from test.test_support import verify, verbose, TestFailed, sortdict
from UserList import UserList
+from UserDict import UserDict
def e(a, b):
print a, b
@@ -25,6 +26,12 @@ f(1, 2, 3, **{'a':4, 'b':5})
f(1, 2, 3, *(4, 5), **{'a':6, 'b':7})
f(1, 2, 3, x=4, y=5, *(6, 7), **{'a':8, 'b':9})
+
+f(1, 2, 3, **UserDict(a=4, b=5))
+f(1, 2, 3, *(4, 5), **UserDict(a=6, b=7))
+f(1, 2, 3, x=4, y=5, *(6, 7), **UserDict(a=8, b=9))
+
+
# Verify clearing of SF bug #733667
try:
e(c=3)