failing test for illegal unpacking with *
This commit is contained in:
1 parent
a6e621e39c
commit
6a2afa7e94
1 file changed
+4
-1
@@ -160,10 +160,13 @@ def args_func(*args):
|
|||||||
exe = args_func(1, "")
|
exe = args_func(1, "")
|
||||||
#? int()
|
#? int()
|
||||||
exe[0]
|
exe[0]
|
||||||
|
|
||||||
#? str()
|
#? str()
|
||||||
exe[1]
|
exe[1]
|
||||||
|
|
||||||
|
# illegal args (TypeError)
|
||||||
|
#?
|
||||||
|
args_func(*1)[0]
|
||||||
|
|
||||||
_list = [1,""]
|
_list = [1,""]
|
||||||
exe2 = args_func(_list)[0]
|
exe2 = args_func(_list)[0]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user