diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 10:33:46 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 10:33:46 +0300 |
commit | 7344285c1919e5ade8016a83a3ee02fd637a030d (patch) | |
tree | f5ac9aea45f055c175d1c462f63eb4fb341830b0 /Lib/test/test_extcall.py | |
parent | 8f0f2056499847999fffa7af7a8872500a191203 (diff) | |
download | cpython-git-7344285c1919e5ade8016a83a3ee02fd637a030d.tar.gz |
Issue #28257: Improved error message when pass a non-iterable as
a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 5eea37989c..96f3ede9a3 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -233,6 +233,16 @@ What about willful misconduct? ... TypeError: h() argument after * must be an iterable, not function + >>> h(1, *h) + Traceback (most recent call last): + ... + TypeError: h() argument after * must be an iterable, not function + + >>> h(*[1], *h) + Traceback (most recent call last): + ... + TypeError: h() argument after * must be an iterable, not function + >>> dir(*h) Traceback (most recent call last): ... |