pycdc/tests/input/call_func_ex.py
Eloïse Brocas b14e4f7fcc
add DICT_MERGE and CALL_FUNCTION_EX operand support
Signed-off-by: Eloïse Brocas <ebrocas@quarkslab.com>
2026-03-06 17:03:12 +01:00

22 lines
373 B
Python

# tests from CPython (lib/test/dtracedata/call_stack.py)
def function_5(dummy, dummy2, **dummy3):
if False:
return 7
return 8
def start():
function_5(*(1, 2), **{"test": 42})
start()
# other tests to try intricated params
a = {"a": 1}
b = (1, 2)
c = {"c": 0}
def f(arg1, arg2, arg3, **kwargs):
return 1
f(*a, *b, kwarg=0, **c) # type: ignore