diff --git a/test/test_inference/test_imports.py b/test/test_inference/test_imports.py index b783ac5f..7dceef51 100644 --- a/test/test_inference/test_imports.py +++ b/test/test_inference/test_imports.py @@ -324,12 +324,13 @@ def test_compiled_import_none(monkeypatch, Script): # context that was initially given, but now we just work with the file # system. (os.path.join(THIS_DIR, 'test_docstring.py'), False, - ('test', 'test_inference', 'test_imports')), + ('test_inference', 'test_imports')), (os.path.join(THIS_DIR, '__init__.py'), True, - ('test', 'test_inference', 'test_imports')), + ('test_inference', 'test_imports')), ] ) def test_get_modules_containing_name(inference_state, path, goal, is_package): + inference_state.project = Project(test_dir) module = imports._load_python_module( inference_state, FileIO(path),