summaryrefslogtreecommitdiff
path: root/Lib/test/test_extcall.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-02 10:33:46 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-02 10:33:46 +0300
commit7344285c1919e5ade8016a83a3ee02fd637a030d (patch)
treef5ac9aea45f055c175d1c462f63eb4fb341830b0 /Lib/test/test_extcall.py
parent8f0f2056499847999fffa7af7a8872500a191203 (diff)
downloadcpython-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.py10
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):
...