summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-08-09 12:22:01 +1000
committerGitHub <noreply@github.com>2018-08-09 12:22:01 +1000
commit2511f3f8a082585e680dad200069dec77b066a6a (patch)
tree90212ffc4a723c50a537a3b1865d6468bebf431b /tests/handlers
parentMerge pull request #3664 from matrix-org/rav/federation_metrics (diff)
downloadsynapse-2511f3f8a082585e680dad200069dec77b066a6a.tar.xz
Test fixes for Python 3 (#3647)
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_typing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py
index 2c263af1a3..f422cf3c5a 100644
--- a/tests/handlers/test_typing.py
+++ b/tests/handlers/test_typing.py
@@ -48,7 +48,9 @@ def _expect_edu(destination, edu_type, content, origin="test"):
 
 
 def _make_edu_json(origin, edu_type, content):
-    return json.dumps(_expect_edu("test", edu_type, content, origin=origin))
+    return json.dumps(
+        _expect_edu("test", edu_type, content, origin=origin)
+    ).encode('utf8')
 
 
 class TypingNotificationsTestCase(unittest.TestCase):