2 Commits

Author SHA1 Message Date
maxalbert
4ce52c8349 Merge c078c42a94 into 6aee460b1d 2025-01-14 11:53:10 +00:00
Maximilian Albert
c078c42a94 Rename test module to minimise risk of unexpected side-effects due to polluting sys.modules 2025-01-14 11:53:04 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -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