forked from VimPlug/jedi
Disable a test for Python 2
This commit is contained in:
@@ -127,6 +127,9 @@ class CompiledObject(Context):
|
||||
signature_params = self.access_handle.get_signature_params()
|
||||
except ValueError: # Has no signature
|
||||
params_str, ret = self._parse_function_doc()
|
||||
if not params_str:
|
||||
tokens = []
|
||||
else:
|
||||
tokens = params_str.split(',')
|
||||
if self.access_handle.ismethoddescriptor():
|
||||
tokens.insert(0, 'self')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from textwrap import dedent
|
||||
import inspect
|
||||
|
||||
@@ -394,6 +395,7 @@ def test_keyword_argument_index(Script, environment):
|
||||
assert get(both + 'foo(a, b, c').index == 0
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Python 2 doesn't support __signature__")
|
||||
@pytest.mark.parametrize('code', ['foo', 'instance.foo'])
|
||||
def test_arg_defaults(Script, environment, code):
|
||||
def foo(arg="bla", arg1=1):
|
||||
|
||||
Reference in New Issue
Block a user