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:38:03 +0100
committerAmber Brown <hawkowl@atleastfornow.net>2018-06-27 11:38:03 +0100
commit94f09618e54e8ae0a30611f0da463d275768ab74 (patch)
treecc427b1ebffe9164e64d8491103bbbade7fe6703 /tests/unittest.py
parentcleanups (diff)
downloadsynapse-94f09618e54e8ae0a30611f0da463d275768ab74.tar.xz
cleanups
Diffstat (limited to '')
-rw-r--r--tests/unittest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index de24b1d2d4..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.replace("{", r"(").replace("}", r")"))
+        self.tx_log.emit(
+            twisted.logger.LogLevel.levelWithName(log_level),
+            log_entry.replace("{", r"(").replace("}", r")"),
+        )
 
 
 handler = ToTwistedHandler()