Skip to content

Commit 28d83b9

Browse files
committed
fix-test
1 parent 74bf6d0 commit 28d83b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_completer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,17 +2072,18 @@ def test_private_attr_completions(self):
20722072
ip = get_ipython()
20732073
ip.user_ns["Test"] = type("Test", (), {"_test1": 1, "__test2": 2})
20742074
ip.user_ns["t"] = ip.user_ns["Test"]()
2075+
ip.Completer.use_jedi = False
20752076

20762077
try:
20772078
with provisionalcompleter():
20782079
completions = list(ip.Completer.completions(text="t._", offset=3))
20792080
completion_texts = [c.text for c in completions]
20802081

20812082
assert (
2082-
"_test1" in completion_texts
2083+
"._test1" in completion_texts
20832084
), f"_test1 not found in {completion_texts}"
20842085
assert (
2085-
"__test2" in completion_texts
2086+
".__test2" in completion_texts
20862087
), f"__test2 not found in {completion_texts}"
20872088
finally:
20882089
del ip.user_ns["Test"]

0 commit comments

Comments
 (0)