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

@@ -503,7 +503,7 @@ _calls = [
@pytest.mark.parametrize('ending', ['', ')'])
@pytest.mark.parametrize('code, call, expected_index', _calls)
def test_signature_index(skip_python2, Script, environment, code, call, expected_index, ending):
def test_signature_index(Script, environment, code, call, expected_index, ending):
if isinstance(expected_index, tuple):
expected_index = expected_index[environment.version_info > (3, 8)]
if environment.version_info < (3, 8):

View File

@@ -91,7 +91,7 @@ def test_version_info(Script):
assert c.docstring() == 'sys.version_info\n\nVersion information as a named tuple.'
def test_builtin_docstring(goto_or_help_or_infer, skip_python2):
def test_builtin_docstring(goto_or_help_or_infer):
d, = goto_or_help_or_infer('open')
doc = d.docstring()
@@ -99,7 +99,7 @@ def test_builtin_docstring(goto_or_help_or_infer, skip_python2):
assert 'Open file' in doc
def test_docstring_decorator(goto_or_help_or_infer, skip_python2):
def test_docstring_decorator(goto_or_help_or_infer):
code = dedent('''
import types

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]