Changeset View
Changeset View
Standalone View
Standalone View
files/fix-test.patch
- This file was added.
| From 57f2a731d2e5c4fe5794d823154983e44e8df003 Mon Sep 17 00:00:00 2001 | |||||
| From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> | |||||
| 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 a7d4846e7..c21579a59 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( | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.