From d48816603e58049be91698d9df3e3ec2023ac2fd Mon Sep 17 00:00:00 2001 From: Johannes Maria Frank Date: Tue, 22 Oct 2019 16:34:47 +0100 Subject: [PATCH] Sorted scandir results to have completions ordered --- test/test_api/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_api/test_api.py b/test/test_api/test_api.py index c370be48..b49a651d 100644 --- a/test/test_api/test_api.py +++ b/test/test_api/test_api.py @@ -314,8 +314,8 @@ def test_file_fuzzy_completion(Script, tmp_path): file0_path1 = folder0 / "syntax_tree.py" file0_path1.write_text('\n') script = Script('"{}/yt'.format(folder0)) - assert ['sys_path.py"', - 'syntax_tree.py"' ] == [comp.name for comp in script.completions(fuzzy=True)] + assert ['syntax_tree.py"', + 'sys_path.py"'] == [comp.name for comp in script.completions(fuzzy=True)] def test_fuzzy_completion(Script):