Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Oct 28, 2023
1 parent 57113e9 commit 8e6a600
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8e6a600

Please sign in to comment.