Skip to content

Commit 477b48b

Browse files
committed
Sort keywords before checking the equality
GNU Readline always sorts completions before displaying them. There is a [rl_sort_completion_matches](https://git.savannah.gnu.org/cgit/readline.git/tree/complete.c#n411) in Readline's source code but it's not exposed as a config flag.
1 parent 34cfc78 commit 477b48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_sqlite3/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def test_completion_order(self):
273273
self.assertEqual(len(indices), 2)
274274
start, end = indices[0] + 1, indices[1]
275275
candidates = tuple(map(str.strip, output_lines[start:end]))
276-
self.assertEqual(candidates, SQLITE_KEYWORDS)
276+
self.assertEqual(candidates, sorted(SQLITE_KEYWORDS))
277277

278278

279279
if __name__ == "__main__":

0 commit comments

Comments
 (0)