mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

Replace the deprecated function getargspec to getfullargspec #406

Closed hicycle closed 3 years ago

hicycle commented 3 years ago

The inspect.getargspec is deprecated since python 3.0. With the current code, we can't set some library(e.g. SeleniumLibrary) as SharedLibrary due to below error:

ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

inspect.getfullargspec is fully compatible with the pabot use case.

hicycle commented 3 years ago

SeleniumLibrary introduce typehint since python 3.5, inspect.getfullargspec must be used to set SeleniumLibrary as SharedLibrary