Skip to content

Commit

Permalink
Fix a small fail in test_duplicated_import
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Nov 25, 2024
1 parent ecb922c commit ce109a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_inference/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def import_names(*args, **kwargs):
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)
Expand Down

0 comments on commit ce109a8

Please sign in to comment.