summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-03-29 11:41:19 +0100
committerGitHub <noreply@github.com>2022-03-29 10:41:19 +0000
commita2b00a44865ff11810c5302e33c1c61ce21a030e (patch)
treed16f0f5378588b3fb2c4584b00f271219255e2c1 /tests/handlers
parentRemove unused `auth_event_ids` argument plumbing (#12304) (diff)
downloadsynapse-a2b00a44865ff11810c5302e33c1c61ce21a030e.tar.xz
Bump `black` and `click` versions (#12320)
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_federation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py
index 89078fc637..4d65639a1e 100644
--- a/tests/handlers/test_federation.py
+++ b/tests/handlers/test_federation.py
@@ -496,8 +496,8 @@ class EventFromPduTestCase(TestCase):
     def test_invalid_numbers(self) -> None:
         """Invalid values for an integer should be rejected, all floats should be rejected."""
         for value in [
-            -(2 ** 53),
-            2 ** 53,
+            -(2**53),
+            2**53,
             1.0,
             float("inf"),
             float("-inf"),
@@ -524,7 +524,7 @@ class EventFromPduTestCase(TestCase):
             event_from_pdu_json(
                 {
                     "type": EventTypes.Message,
-                    "content": {"foo": [{"bar": 2 ** 56}]},
+                    "content": {"foo": [{"bar": 2**56}]},
                     "room_id": "!room:test",
                     "sender": "@user:test",
                     "depth": 1,