From 8ef2ce232cebf6f30b41b28b2677d84666a97d55 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 Jan 2021 18:11:59 +0100 Subject: [PATCH] Hopefully fix a Windows issue --- test/test_inference/test_imports.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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),