mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Skip dict key completion tests for Python 3.5, because it's just annoying with all the f-string stuff
This commit is contained in:
@@ -166,3 +166,11 @@ def skip_pre_python35(environment):
|
||||
# This if is just needed to avoid that tests ever skip way more than
|
||||
# they should for all Python versions.
|
||||
pytest.skip()
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def skip_pre_python36(environment):
|
||||
if environment.version_info < (3, 6):
|
||||
# This if is just needed to avoid that tests ever skip way more than
|
||||
# they should for all Python versions.
|
||||
pytest.skip()
|
||||
|
||||
@@ -330,7 +330,7 @@ _dict_keys_completion_tests = [
|
||||
@pytest.mark.parametrize(
|
||||
'added_code, column, expected', _dict_keys_completion_tests
|
||||
)
|
||||
def test_dict_keys_completions(Script, added_code, column, expected, skip_pre_python35):
|
||||
def test_dict_keys_completions(Script, added_code, column, expected, skip_pre_python36):
|
||||
code = dedent(r'''
|
||||
ints = {1: ''}
|
||||
ints[50] = 3.0
|
||||
|
||||
Reference in New Issue
Block a user