forked from VimPlug/jedi
Fix a small fail in test_duplicated_import
This commit is contained in:
@@ -318,8 +318,8 @@ def test_duplicated_import(Script):
|
|||||||
s = 'from os import path, p'
|
s = 'from os import path, p'
|
||||||
assert 'path' not in import_names(s)
|
assert 'path' not in import_names(s)
|
||||||
assert 'path' in import_names(s, column=len(s) - 3)
|
assert 'path' in import_names(s, column=len(s) - 3)
|
||||||
assert 'path' in import_names("from import path")
|
assert 'path' in import_names("from os import path")
|
||||||
assert 'path' in import_names("from import chdir, path")
|
assert 'path' in import_names("from os import chdir, path")
|
||||||
|
|
||||||
s = 'import math as mm, m'
|
s = 'import math as mm, m'
|
||||||
assert 'math' not in import_names(s)
|
assert 'math' not in import_names(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user