mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Disable some more tests in Python 2
This commit is contained in:
@@ -219,6 +219,7 @@ def get_int_or_none(context):
|
|||||||
def get_str_or_none(context):
|
def get_str_or_none(context):
|
||||||
return _get_safe_value_or_none(context, (bytes, unicode))
|
return _get_safe_value_or_none(context, (bytes, unicode))
|
||||||
|
|
||||||
|
|
||||||
def is_number(context):
|
def is_number(context):
|
||||||
return _get_safe_value_or_none(context, (int, float)) is not None
|
return _get_safe_value_or_none(context, (int, float)) is not None
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
"""
|
"""
|
||||||
Tests of ``jedi.api.Interpreter``.
|
Tests of ``jedi.api.Interpreter``.
|
||||||
"""
|
"""
|
||||||
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
@@ -378,6 +380,7 @@ def test_sys_path_docstring(): # Was an issue in #1298
|
|||||||
s.completions()[0].docstring()
|
s.completions()[0].docstring()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, because EOL")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'code, completions', [
|
'code, completions', [
|
||||||
('x[0].uppe', ['upper']),
|
('x[0].uppe', ['upper']),
|
||||||
|
|||||||
Reference in New Issue
Block a user