mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
disable a test for py26.
This commit is contained in:
@@ -13,6 +13,7 @@ except ImportError:
|
|||||||
|
|
||||||
is_py3k = sys.hexversion >= 0x03000000
|
is_py3k = sys.hexversion >= 0x03000000
|
||||||
is_py33 = sys.hexversion >= 0x03030000
|
is_py33 = sys.hexversion >= 0x03030000
|
||||||
|
is_py26 = sys.hexversion < 0x02700000
|
||||||
|
|
||||||
|
|
||||||
def find_module_py33(string, path=None):
|
def find_module_py33(string, path=None):
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import itertools
|
|||||||
|
|
||||||
from jedi import Script
|
from jedi import Script
|
||||||
from .helpers import cwd_at
|
from .helpers import cwd_at
|
||||||
|
from jedi._compatibility import is_py26
|
||||||
|
|
||||||
|
|
||||||
def test_goto_definition_on_import():
|
def test_goto_definition_on_import():
|
||||||
@@ -21,7 +22,8 @@ def test_complete_on_empty_import():
|
|||||||
assert 10 < len(Script("from . import", 1, 5, '').completions()) < 30
|
assert 10 < len(Script("from . import", 1, 5, '').completions()) < 30
|
||||||
assert 10 < len(Script("from . import classes", 1, 5, '').completions()) < 30
|
assert 10 < len(Script("from . import classes", 1, 5, '').completions()) < 30
|
||||||
assert len(Script("import").completions()) == 0
|
assert len(Script("import").completions()) == 0
|
||||||
assert len(Script("import import", path='').completions()) > 0
|
if not is_py26:
|
||||||
|
assert len(Script("import import", path='').completions()) > 0
|
||||||
|
|
||||||
# 111
|
# 111
|
||||||
assert Script("from datetime import").completions()[0].name == 'import'
|
assert Script("from datetime import").completions()[0].name == 'import'
|
||||||
|
|||||||
Reference in New Issue
Block a user