summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-06-29 13:55:02 +0100
committerGitHub <noreply@github.com>2018-06-29 13:55:02 +0100
commite3b4043800f376582676f52767cffcf1e9b8cc99 (patch)
tree7b0f021479039d87c3729667c4cbb99467228756 /tests/unittest.py
parentMerge pull request #3465 from matrix-org/matthew/as_ip_lock (diff)
parenttopfile update (diff)
downloadsynapse-e3b4043800f376582676f52767cffcf1e9b8cc99.tar.xz
Merge pull request #3456 from matrix-org/hawkowl/federation-prevevent-checking
Check the state of prev_events a bit more thoroughly when coming over federation
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index 184fe880f3..b25f2db5d5 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -35,7 +35,10 @@ class ToTwistedHandler(logging.Handler):
     def emit(self, record):
         log_entry = self.format(record)
         log_level = record.levelname.lower().replace('warning', 'warn')
-        self.tx_log.emit(twisted.logger.LogLevel.levelWithName(log_level), log_entry)
+        self.tx_log.emit(
+            twisted.logger.LogLevel.levelWithName(log_level),
+            log_entry.replace("{", r"(").replace("}", r")"),
+        )
 
 
 handler = ToTwistedHandler()