summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-09 23:54:05 +0100
committerGitHub <noreply@github.com>2018-04-09 23:54:05 +0100
commit87478c5a6007b2a21933c1200f2741b6f3d0df3e (patch)
tree06221bbafb5a936ea7c19d7ae856b93a7ce3ff2e /tests/utils.py
parentMerge pull request #3073 from NotAFile/use-six-reraise (diff)
parentAdd b prefixes to some strings that are bytes in py3 (diff)
downloadsynapse-87478c5a6007b2a21933c1200f2741b6f3d0df3e.tar.xz
Merge pull request #3061 from NotAFile/add-some-byte-strings
Add b prefixes to some strings that are bytes in py3
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 8efd3a3475..f15317d27b 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -212,7 +212,7 @@ class MockHttpResource(HttpServer):
 
         headers = {}
         if federation_auth:
-            headers["Authorization"] = ["X-Matrix origin=test,key=,sig="]
+            headers[b"Authorization"] = ["X-Matrix origin=test,key=,sig="]
         mock_request.requestHeaders.getRawHeaders = mock_getRawHeaders(headers)
 
         # return the right path if the event requires it