summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-06-27 11:27:32 +0100
committerAmber Brown <hawkowl@atleastfornow.net>2018-06-27 11:27:32 +0100
commit77078d6c8ef11e2401406edc1ca340e0d7779267 (patch)
treedfb1c69b80cd017f5406de5b5a1bc9ddbf16a09b /tests/unittest.py
parentBetter testing framework for homeserver-using things (#3446) (diff)
downloadsynapse-77078d6c8ef11e2401406edc1ca340e0d7779267.tar.xz
handle federation not telling us about prev_events
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index 184fe880f3..de24b1d2d4 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -35,7 +35,7 @@ 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()