diff --git a/test/examples/implicit_namespace_package_with_subpackages/ns1/pkg/pkgA/__init__.py b/test/examples/implicit_namespace_package_with_subpackages/ns1/pkg_implicit_namespace_package_test/pkgA/__init__.py similarity index 100% rename from test/examples/implicit_namespace_package_with_subpackages/ns1/pkg/pkgA/__init__.py rename to test/examples/implicit_namespace_package_with_subpackages/ns1/pkg_implicit_namespace_package_test/pkgA/__init__.py diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py index c3d18f77..8102d337 100644 --- a/test/test_api/test_interpreter.py +++ b/test/test_api/test_interpreter.py @@ -599,8 +599,12 @@ def test_implicit_namespace_package_with_subpackages(monkeypatch): monkeypatch.syspath_prepend(sys_path_dir1) monkeypatch.syspath_prepend(sys_path_dir2) - import pkg - interpreter = jedi.Interpreter("pkg.", namespaces=[locals()], project=Project('.')) + import pkg_implicit_namespace_package_test + interpreter = jedi.Interpreter( + "pkg_implicit_namespace_package_test.", + namespaces=[locals()], + project=Project('.') + ) comps = interpreter.complete() expected = ["pkgA", "pkgB"] assert [c.complete for c in comps] == expected