1
0
forked from VimPlug/jedi

Remove the skip_python2 fixture

This commit is contained in:
Dave Halter
2020-07-02 02:52:02 +02:00
parent f4e537fd72
commit 188fdcd34f
9 changed files with 9 additions and 27 deletions

View File

@@ -1,5 +1,3 @@
import sys
import pytest
_tuple_code = 'from typing import Tuple\ndef f(x: Tuple[int]): ...\nf'
@@ -20,7 +18,7 @@ _tuple_code = 'from typing import Tuple\ndef f(x: Tuple[int]): ...\nf'
('def f(*args: int, **kwargs: str): ...\nf', ['class int', 'class str'], False),
]
)
def test_param_annotation(Script, code, expected_params, execute_annotation, skip_python2):
def test_param_annotation(Script, code, expected_params, execute_annotation):
func, = Script(code).goto()
sig, = func.get_signatures()
for p, expected in zip(sig.params, expected_params):
@@ -60,7 +58,7 @@ def test_param_default(Script, code, expected_params):
('def f(*args, x): pass\nf', 1, 'x', 'KEYWORD_ONLY'),
]
)
def test_param_kind_and_name(code, index, param_code, kind, Script, skip_python2):
def test_param_kind_and_name(code, index, param_code, kind, Script):
func, = Script(code).goto()
sig, = func.get_signatures()
param = sig.params[index]