diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-12 06:22:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-12 06:22:01 (GMT) |
commit | 3c317e76a2fe78896b546e08fa753075463e7d41 (patch) | |
tree | 276a4ad8a5bb81afec80673cec93a76ab3f33974 /Lib/test/test_unpack_ex.py | |
parent | 4f8aaf644095fef61ba1104af0f07efe2a099079 (diff) | |
download | cpython-3c317e76a2fe78896b546e08fa753075463e7d41.zip cpython-3c317e76a2fe78896b546e08fa753075463e7d41.tar.gz cpython-3c317e76a2fe78896b546e08fa753075463e7d41.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.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unpack_ex.py b/Lib/test/test_unpack_ex.py index d27eef0..74346b4 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): ... |