subunit2junitxml fails to output subunit stream
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjunitxml |
Triaged
|
High
|
Unassigned |
Bug Description
We occaisonally encounter a problem with subunit2junitxml.
When we run our tests, we create a subunit (v2) result file, and then later run:
$ cat test_results.
Most of the time this works fine, but occaisonally it crashes with the following stack trace:
Traceback (most recent call last):
File "/usr/bin/
protocol_
File "/usr/lib/
options.
File "/usr/lib/
protocol_
File "/usr/lib/
result.
File "/usr/lib/
sink.
File "/usr/lib/
self.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
UnicodeEncodeError: 'ascii' codec can't encode character '\xa2' in position 3062: ordinal not in range(128)
The subunit file responsible for that crash is attached to the bug report, but I'm unable to reproduce the crash locally.
The error is in transcoding - which we should be avoiding // not triggering