Skip to content

Commit 3f50ae9

Browse files
committed
unicode_testrunner: Now reads and replaces directly
1 parent bec49de commit 3f50ae9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/testrunner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ def wait_status(self):
163163
# Start and wait for the process
164164
self.proc_.communicate()
165165

166-
with codecs.open('{}/log_stdout.log'.format(self.path_), encoding='utf-8') as log_stdout:
166+
with codecs.open('{}/log_stdout.log'.format(self.path_), encoding='utf-8', errors='replace') as log_stdout:
167167
self.output_.append(log_stdout.read())
168168

169-
with codecs.open('{}/log_stderr.log'.format(self.path_), encoding='utf-8') as log_stderr:
169+
with codecs.open('{}/log_stderr.log'.format(self.path_), encoding='utf-8', errors='replace') as log_stderr:
170170
self.output_.append(log_stderr.read())
171171

172172

0 commit comments

Comments
 (0)