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_extcall.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_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index d526b5f..5eea379 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -57,6 +57,10 @@ Here we add keyword arguments Traceback (most recent call last): ... TypeError: f() got multiple values for keyword argument 'a' + >>> f(1, 2, a=3, **{'a': 4}, **{'a': 5}) + Traceback (most recent call last): + ... + TypeError: f() got multiple values for keyword argument 'a' >>> f(1, 2, 3, *[4, 5], **{'a':6, 'b':7}) (1, 2, 3, 4, 5) {'a': 6, 'b': 7} >>> f(1, 2, 3, x=4, y=5, *(6, 7), **{'a':8, 'b': 9}) |