From d4d5cd1daf9fbcd8991078f3a5f08f0a3ef7bccd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 1 Oct 2023 21:47:38 -0700 Subject: [PATCH] test_realm: Fix incorrect comparison of sort() return values. Fixes #22105. --- zerver/tests/test_realm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py index 116241c379..417c8fdb0f 100644 --- a/zerver/tests/test_realm.py +++ b/zerver/tests/test_realm.py @@ -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")