We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d0218 commit f8cbcbdCopy full SHA for f8cbcbd
codeflash/benchmarking/replay_test.py
@@ -116,7 +116,7 @@ def create_trace_replay_test_code(
116
ret = {class_name_alias}(*args[1:], **kwargs)
117
else:
118
instance = args[0] # self
119
- ret = instance{method_name}(*args[1:], **kwargs)
+ ret = {class_name_alias}{method_name}(*args, **kwargs)
120
"""
121
)
122
@@ -127,7 +127,7 @@ def create_trace_replay_test_code(
127
kwargs = pickle.loads(kwargs_pkl){filter_variables}
128
if not args:
129
raise ValueError("No arguments provided for the method.")
130
- ret = {class_name_alias}{method_name}(*args, **kwargs)
+ ret = {class_name_alias}{method_name}(*args[1:], **kwargs)
131
132
133
test_static_method_body = textwrap.dedent(
0 commit comments