-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Labels
Description
While working on pytest-dev/pytest#2072 I noticed that pytest-xdist raises these warnings when running pytest's test suite:
-
addoptionreceiving a string instead of a type:File "c:\pytest\.tox\py35-xdist\lib\site-packages\xdist\plugin.py", line 36, in pytest_addoption help=("set mode for distributing tests to exec environments.\n\n" File "C:\pytest\_pytest\config.py", line 752, in _addoption option = Argument(*optnames, **attrs) File "C:\pytest\_pytest\config.py", line 639, in __init__ stacklevel=3) DeprecationWarning: type argument to addoption() is a string 'choice'. For parsearg this is optional and when supplied should be a type. (options: ('--dist',)) -
inspect.getargspecon Python >= 3.5:INTERNALERROR> File "c:\pytest\.tox\py35-xdist\lib\site-packages\execnet\gateway.py", line 186, in _source_of_function INTERNALERROR> args, varargs, keywords, defaults = inspect.getargspec(function) INTERNALERROR> File "c:\python35\Lib\inspect.py", line 1040, in getargspec INTERNALERROR> stacklevel=2) INTERNALERROR> DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead