autotest: fix interact

This commit is contained in:
Peter Barker 2023-10-06 09:02:39 +11:00 committed by Peter Barker
parent 77945be031
commit 675c6e27e9

View File

@ -227,6 +227,8 @@ class TeeBoth(object):
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)