Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_console_output: Avoid appending to bytes in a loop.
Anders Kaseorgb0b8f84949dc
diff --git a/zerver/lib/test_console_output.py b/zerver/lib/test_console_output.pyindex c8dac0c51d4..d0186a7599f 100644--- a/zerver/lib/test_console_output.py+++ b/zerver/lib/test_console_output.py@@ -35,7 +35,7 @@ class ExtraConsoleOutputFinder:]self.compiled_line_pattern = re.compile(b"|".join(valid_line_patterns))self.partial_line = b""- self.full_extra_output = b""+ self.full_extra_output = bytearray()def find_extra_output(self, data: bytes) -> None:*lines, self.partial_line = (self.partial_line + data).split(b"\n")