Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions xmlrunner/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ def _exc_info_to_string(self, err, test):
msgLines.append(STDERR_LINE % error)
# This is the extra magic to make sure all lines are str
encoding = getattr(sys.stdout, 'encoding', 'utf-8')
if encoding is None:
encoding = 'utf-8'
lines = []
for line in msgLines:
if not isinstance(line, str):
Expand Down