forked from VimPlug/jedi
Some minor test changes to get typeshed almost fully working
This commit is contained in:
@@ -111,5 +111,4 @@ def test_os_path(Script):
|
||||
|
||||
def test_os_issues(Script):
|
||||
"""Issue #873"""
|
||||
c, = Script('import os\nos.nt''').completions()
|
||||
assert c.full_name == 'nt'
|
||||
assert not Script('import os\nos.nt''').completions()
|
||||
|
||||
@@ -4,7 +4,7 @@ Tests of ``jedi.api.Interpreter``.
|
||||
import pytest
|
||||
|
||||
import jedi
|
||||
from jedi._compatibility import is_py3, py_version, is_py35
|
||||
from jedi._compatibility import is_py3, py_version
|
||||
from jedi.evaluate.compiled import mixed
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ def test_exclude_builtin_modules(Script):
|
||||
return [(d.line, d.column) for d in Script(source, column=8).usages(include_builtins=include)]
|
||||
source = '''import sys\nprint(sys.path)'''
|
||||
places = get(include=True)
|
||||
assert places == [(1, 7), (2, 6)]
|
||||
assert len(places) > 2 # Includes stubs
|
||||
|
||||
places = get(include=False)
|
||||
assert places == [(1, 7), (2, 6)]
|
||||
|
||||
Reference in New Issue
Block a user