-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Closed as not planned
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
we are working on Azure devops CLI extension, recently we have encountered some issues during build pipeline run. Pipeline run is failing due to the below error:
__________ AdminBannerTests.test_admin_banner_addUpdateShowListRemove __________
/opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/azure_devtools/scenario_tests/decorators.py:38: in _preparer_wrapper
trim_kwargs_from_test_function(fn, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fn = <function disable_telemetry.<locals>.wrapper at 0x7fc5d610ede0>
kwargs = {}
def trim_kwargs_from_test_function(fn, kwargs):
# the next function is the actual test function. the kwargs need to be trimmed so
# that parameters which are not required will not be passed to it.
if not is_preparer_func(fn):
> args, _, kw, _ = inspect.getargspec(fn) # pylint: disable=deprecated-method
E AttributeError: module 'inspect' has no attribute 'getargspec'we have gone through the pyhton 3.11 doc https://docs.python.org/3.11/library/inspect.html#inspect.getargspec and "getargspec" is deprecated. can someone provide the solution on it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error