From 7ff76bb7d0d94514e17cd1647f4ffaf533dd55f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 15 Apr 2020 07:54:01 +0200 Subject: [PATCH] Sort test_project::test_search results to fix failures Fixes #1542 --- test/test_api/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_api/test_project.py b/test/test_api/test_project.py index a7d4846e..c21579a5 100644 --- a/test/test_api/test_project.py +++ b/test/test_api/test_project.py @@ -135,7 +135,7 @@ def test_search(string, full_names, kwargs, skip_pre_python36): defs = project.complete_search(string, **kwargs) else: defs = project.search(string, **kwargs) - assert [('stub:' if d.is_stub() else '') + d.full_name for d in defs] == full_names + assert sorted([('stub:' if d.is_stub() else '') + d.full_name for d in defs]) == full_names @pytest.mark.parametrize(