test_realm: Fix incorrect comparison of sort() return values.

Fixes #22105.
This commit is contained in:
Tim Abbott 2023-10-01 21:47:38 -07:00
parent 54d2215f1b
commit d4d5cd1daf
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ class RealmTest(ZulipTestCase):
UserGroup.EVERYONE_ON_INTERNET_GROUP_NAME,
UserGroup.NOBODY_GROUP_NAME,
]
self.assertEqual(user_group_names.sort(), expected_system_group_names.sort())
self.assertEqual(sorted(user_group_names), sorted(expected_system_group_names))
def test_changing_waiting_period_updates_system_groups(self) -> None:
realm = get_realm("zulip")