summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unpack_ex.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-12 06:35:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-12 06:35:13 (GMT)
commitcf2ad555113e4afc6f8cd5ac5235deef6a3fdf82 (patch)
tree902999b38abc5e4f99f7d101e6fb0bc3dd3212a2 /Lib/test/test_unpack_ex.py
parent52855452711eb2df1900470d387b58dede3ac941 (diff)
parent3c317e76a2fe78896b546e08fa753075463e7d41 (diff)
downloadcpython-cf2ad555113e4afc6f8cd5ac5235deef6a3fdf82.zip
cpython-cf2ad555113e4afc6f8cd5ac5235deef6a3fdf82.tar.gz
cpython-cf2ad555113e4afc6f8cd5ac5235deef6a3fdf82.tar.bz2
Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
function with generalized unpacking (PEP 448) and conflicting keyword names could cause undefined behavior.
Diffstat (limited to 'Lib/test/test_unpack_ex.py')
-rw-r--r--Lib/test/test_unpack_ex.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unpack_ex.py b/Lib/test/test_unpack_ex.py
index f426e5a..6be8f55 100644
--- a/Lib/test/test_unpack_ex.py
+++ b/Lib/test/test_unpack_ex.py
@@ -248,6 +248,11 @@ Overridden parameters
...
TypeError: f() got multiple values for keyword argument 'x'
+ >>> f(x=5, **{'x': 3}, **{'x': 2})
+ Traceback (most recent call last):
+ ...
+ TypeError: f() got multiple values for keyword argument 'x'
+
>>> f(**{1: 3}, **{1: 5})
Traceback (most recent call last):
...