# HG changeset patch # User Mads Kiilerich # Date 2019-12-26 04:55:00 # Node ID 05e28260b812f0e6084421b3c919e01a4f8f3dd1 # Parent 91103995888bbdddb627ef9e8647881324d3802f tests: sort groups in test_enforce_groups check to make it independent of ordering Py3 would give another ordering. diff --git a/kallithea/tests/models/test_user_groups.py b/kallithea/tests/models/test_user_groups.py --- a/kallithea/tests/models/test_user_groups.py +++ b/kallithea/tests/models/test_user_groups.py @@ -56,4 +56,4 @@ class TestUserGroups(TestController): user = User.get_by_username(TEST_USER_REGULAR_LOGIN) in_groups = user.group_member - assert expected == [x.users_group.users_group_name for x in in_groups] + assert sorted(expected) == sorted(x.users_group.users_group_name for x in in_groups)