Hopefully fix a Windows issue

This commit is contained in:
Dave Halter
2021-01-02 18:11:59 +01:00
parent 4ab7a53c19
commit 8ef2ce232c

View File

@@ -324,12 +324,13 @@ def test_compiled_import_none(monkeypatch, Script):
# context that was initially given, but now we just work with the file # context that was initially given, but now we just work with the file
# system. # system.
(os.path.join(THIS_DIR, 'test_docstring.py'), False, (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, (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): def test_get_modules_containing_name(inference_state, path, goal, is_package):
inference_state.project = Project(test_dir)
module = imports._load_python_module( module = imports._load_python_module(
inference_state, inference_state,
FileIO(path), FileIO(path),