1
0
forked from VimPlug/jedi

Fix a small fail in test_duplicated_import

This commit is contained in:
Dave Halter
2024-11-25 09:49:44 +01:00
parent ecb922c6ff
commit ce109a8cdf

View File

@@ -318,8 +318,8 @@ def test_duplicated_import(Script):
s = 'from os import path, p'
assert 'path' not in import_names(s)
assert 'path' in import_names(s, column=len(s) - 3)
assert 'path' in import_names("from import path")
assert 'path' in import_names("from import chdir, path")
assert 'path' in import_names("from os import path")
assert 'path' in import_names("from os import chdir, path")
s = 'import math as mm, m'
assert 'math' not in import_names(s)