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:
Dave Halter
2020-01-01 13:13:10 +01:00
parent 4837822e32
commit ce748e6dc7
2 changed files with 9 additions and 1 deletions

View File

@@ -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()

View File

@@ -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