From 675c6e27e9e15e7d3eafac4361b075d18aa5bda7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 6 Oct 2023 09:02:39 +1100 Subject: [PATCH] autotest: fix interact --- Tools/autotest/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index ec2a3d0872d41..094c76f52a30d 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -227,6 +227,8 @@ def close(self): self.file = None def write(self, data): + if isinstance(data, bytes): + data = data.decode('ascii') self.file.write(data) if not self.suppress_stdout: self.stdout.write(data)