From ce109a8cdf27d52e4deeb9af0029b9995f28a710 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 25 Nov 2024 09:49:44 +0100 Subject: [PATCH] Fix a small fail in test_duplicated_import --- test/test_inference/test_imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)