summary refs log tree commit diff
path: root/tests/rest/client/test_login.py
diff options
context:
space:
mode:
authorV02460 <V02460@gmail.com>2023-08-25 21:05:10 +0200
committerGitHub <noreply@github.com>2023-08-25 15:05:10 -0400
commit84f441f88f51d3f94e1616e1e5507df0dadb6de8 (patch)
tree717bc7464290b887d2e2c355659104d5b7613972 /tests/rest/client/test_login.py
parentservice-identity, incremental, and setuptools-rust now have type hints. (#16186) (diff)
downloadsynapse-84f441f88f51d3f94e1616e1e5507df0dadb6de8.tar.xz
Prepare unit tests for Python 3.12 (#16099)
Diffstat (limited to 'tests/rest/client/test_login.py')
-rw-r--r--tests/rest/client/test_login.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rest/client/test_login.py b/tests/rest/client/test_login.py
index 62c32cae5e..a2a6589564 100644
--- a/tests/rest/client/test_login.py
+++ b/tests/rest/client/test_login.py
@@ -581,8 +581,9 @@ class LoginRestServletTestCase(unittest.HomeserverTestCase):
             body,
         )
         self.assertEqual(channel.code, 403, channel.result)
-        self.assertDictContainsSubset(
-            {"errcode": Codes.LIMIT_EXCEEDED, "extra": "value"}, channel.json_body
+        self.assertLessEqual(
+            {"errcode": Codes.LIMIT_EXCEEDED, "extra": "value"}.items(),
+            channel.json_body.items(),
         )