diff --git a/test/test_inference/test_imports.py b/test/test_inference/test_imports.py index dfec5cd45..99e6d960d 100644 --- a/test/test_inference/test_imports.py +++ b/test/test_inference/test_imports.py @@ -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)