Fix a small fail in test_duplicated_import
This commit is contained in:
1 parent
ecb922c6ff
commit
ce109a8cdf
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user