mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-30 08:44:21 +08:00
Some testing fixes that were broken with the few previous commits.
This commit is contained in:
@@ -97,8 +97,8 @@ def test_not_importable_file():
|
||||
def test_import_unique():
|
||||
src = "import os; os.path"
|
||||
defs = jedi.Script(src, path='example.py').goto_definitions()
|
||||
defs = [d._name.parent_context for d in defs]
|
||||
assert len(defs) == len(set(defs))
|
||||
parent_contexts = [d._name._context for d in defs]
|
||||
assert len(parent_contexts) == len(set(parent_contexts))
|
||||
|
||||
|
||||
def test_cache_works_with_sys_path_param(tmpdir):
|
||||
|
||||
Reference in New Issue
Block a user