summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Levin <slev@altlinux.org>2021-04-28 14:33:50 +0300
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-28 19:56:38 +0200
commit9228c160b703792c0029471f818eb5505188e063 (patch)
tree7e44a94fe398e1448971e6f5b6567e6c7b9a68a1
parent28c093c28909a84c24a27a248e04869a1880482b (diff)
downloadpylint-git-9228c160b703792c0029471f818eb5505188e063.tar.gz
tests: Sort for comparison in test_expand_modules
`expand_modules` doesn't guarantee the order of yielded entries. Closes: #4417 Signed-off-by: Stanislav Levin <slev@altlinux.org>
-rw-r--r--tests/lint/unittest_expand_modules.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lint/unittest_expand_modules.py b/tests/lint/unittest_expand_modules.py
index f4d64b7b3..99be557bf 100644
--- a/tests/lint/unittest_expand_modules.py
+++ b/tests/lint/unittest_expand_modules.py
@@ -72,5 +72,6 @@ init_of_package = {
def test_expand_modules(files_or_modules, expected):
ignore_list, ignore_list_re = [], []
modules, errors = expand_modules(files_or_modules, ignore_list, ignore_list_re)
+ modules.sort(key=lambda d: d["name"])
assert modules == expected
assert not errors