Skip to content

Commit

Permalink
Rename test module to minimise risk of unexpected side-effects due to…
Browse files Browse the repository at this point in the history
… polluting sys.modules
  • Loading branch information
maxalbert committed Jan 14, 2025
1 parent 1ce0d00 commit aa302c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_api/test_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa302c5

Please sign in to comment.