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

@@ -126,7 +126,7 @@ def test_math(Script):
assert value
def test_type_var(Script, skip_python2):
def test_type_var(Script):
def_, = Script('import typing; T = typing.TypeVar("T1")').infer()
assert def_.name == 'TypeVar'
assert def_.description == 'class TypeVar'

View File

@@ -85,7 +85,7 @@ def test_find_module_package_zipped(Script, inference_state, environment):
)
def test_correct_zip_package_behavior(Script, inference_state, environment, code,
file, package, path, skip_python2):
file, package, path):
sys_path = environment.get_sys_path() + [pkg_zip_path]
pkg, = Script(code, project=Project('.', sys_path=sys_path)).infer()
value, = pkg._name.infer()

View File

@@ -26,7 +26,7 @@ def test_f_strings(Script, environment):
assert _infer_literal(Script, 'rF"{asdf} "', is_fstring=True) == ''
def test_rb_strings(Script, environment, skip_python2):
def test_rb_strings(Script, environment):
assert _infer_literal(Script, 'x = br"asdf"; x') == b'asdf'
assert _infer_literal(Script, 'x = rb"asdf"; x') == b'asdf'