Skip to content

Commit 4736fad

Browse files
committed
replaced call to deprecated method 'getargspec' with 'getfullargspec' in helpers.py 'get_function_params' method to avoid ValueError exception when including keyword only parameters
1 parent e7ff30a commit 4736fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reportportal_client/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def get_function_params(func, args, kwargs):
174174
with warnings.catch_warnings():
175175
warnings.filterwarnings('ignore', category=DeprecationWarning)
176176
# noinspection PyDeprecation
177-
arg_spec = inspect.getargspec(func)
177+
arg_spec = inspect.getfullargspec(func)
178178
result = dict()
179179
for i, arg_name in enumerate(arg_spec.args):
180180
if i >= len(args):

0 commit comments

Comments
 (0)