From b878b139dd2433f00df42ed044cd884e985ee5b2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 14 Oct 2015 20:48:12 +0200 Subject: [PATCH] Ignore errors when decoding subprocess output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This would otherwise fail on Windows because … get translated to an UTF-8 NEL (U+0085)... --- tests/integration/testprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 35af25912..85b75aa9d 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -97,7 +97,7 @@ class Process(QObject): """Read the log from the process' stdout.""" while self.proc.canReadLine(): line = self.proc.readLine() - line = bytes(line).decode('utf-8').rstrip('\r\n') + line = bytes(line).decode('utf-8', errors='ignore').rstrip('\r\n') try: parsed = self._parse_line(line)