From 8e6a6008fc7b81d984285159bbc74c72487c4543 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Sat, 28 Oct 2023 09:35:59 -0300 Subject: [PATCH] wip --- .../codecompletion/PythonCompletionWithBuiltinsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/org.python.pydev/tests_completions/org/python/pydev/ast/codecompletion/PythonCompletionWithBuiltinsTest.java b/plugins/org.python.pydev/tests_completions/org/python/pydev/ast/codecompletion/PythonCompletionWithBuiltinsTest.java index bdddd6c105..e8d86c9a16 100644 --- a/plugins/org.python.pydev/tests_completions/org/python/pydev/ast/codecompletion/PythonCompletionWithBuiltinsTest.java +++ b/plugins/org.python.pydev/tests_completions/org/python/pydev/ast/codecompletion/PythonCompletionWithBuiltinsTest.java @@ -159,7 +159,7 @@ public void testRecursion() throws FileNotFoundException, Exception, CompletionR } catch (CompletionRecursionException e) { //that's ok... we're asking for it here... } - requestCompl(f, strDoc, strDoc.length(), -1, new String[] { "args", "with_traceback(tb)" }); + requestCompl(f, strDoc, strDoc.length(), -1, new String[] { "args", "with_traceback(self, tb)" }); } public void testCompleteImportBuiltin() throws BadLocationException, IOException, Exception { @@ -236,12 +236,12 @@ public void testBuiltinsInNamespace1() throws BadLocationException, IOException, public void testBuiltinsInNamespace2() throws BadLocationException, IOException, Exception { String s = "__builtins__.RuntimeError."; - requestCompl(s, s.length(), 2, new String[] { "args", "with_traceback(tb)" }); + requestCompl(s, s.length(), 2, new String[] { "args", "with_traceback(self, tb)" }); } public void testBuiltinsInNamespace2Underline() throws BadLocationException, IOException, Exception { String s = "__builtins__.RuntimeError._"; - requestCompl(s, s.length(), -1, new String[] { "__doc__", "__init__()", "__str__()" }); + requestCompl(s, s.length(), -1, new String[] { "__doc__", "__init__(self)", "__str__(self)" }); } public void testPreferForcedBuiltin() throws BadLocationException, IOException, Exception {