Disable some more tests in Python 2

This commit is contained in:
Dave Halter
2019-06-07 02:45:48 +02:00
parent 94dfe7bf69
commit 65d5c6eb2b
2 changed files with 4 additions and 0 deletions

View File

@@ -219,6 +219,7 @@ def get_int_or_none(context):
def get_str_or_none(context):
return _get_safe_value_or_none(context, (bytes, unicode))
def is_number(context):
return _get_safe_value_or_none(context, (int, float)) is not None

View File

@@ -1,6 +1,8 @@
"""
Tests of ``jedi.api.Interpreter``.
"""
import sys
import pytest
import jedi
@@ -378,6 +380,7 @@ def test_sys_path_docstring(): # Was an issue in #1298
s.completions()[0].docstring()
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, because EOL")
@pytest.mark.parametrize(
'code, completions', [
('x[0].uppe', ['upper']),