Skip to content

Commit

Permalink
autotest: fix interact
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Oct 6, 2023
1 parent 77945be commit 675c6e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 675c6e2

Please sign in to comment.