diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 10:34:46 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 10:34:46 +0300 |
commit | 775a0ea0da81cd97e22541949a385bb34eb8184f (patch) | |
tree | 7f2ec826b06ccfa9c2caf3ef906efb698be45488 /Lib/test/test_extcall.py | |
parent | 18c5e8e86f3ae2f67bbb893a5f89f9b4fb679f11 (diff) | |
parent | 7344285c1919e5ade8016a83a3ee02fd637a030d (diff) | |
download | cpython-git-775a0ea0da81cd97e22541949a385bb34eb8184f.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): ... |