Skip to content

Commit 1dbf393

Browse files
committed
tests/basics/fun_callstardblstar: Add test for large arg allocation.
Signed-off-by: Damien George <[email protected]>
1 parent 40f5c74 commit 1dbf393

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/basics/fun_callstardblstar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ def f2(*args, **kwargs):
3434

3535

3636
f2(*iter(range(4)), **{'a': 1})
37+
38+
# case where *args is not a tuple/list and takes up most of the memory allocated for **kwargs
39+
f2(*iter(range(100)), **{str(i): i for i in range(100)})

0 commit comments

Comments
 (0)