subunit2html failed with "UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position ..."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-testr |
Fix Released
|
Undecided
|
Liron Kuchlani |
Bug Description
The exception is caused by the following code line:
https:/
683 script = TemplateData.
684 id=tid,
685 -> output=
686 )
687
688 row = tmpl % dict(
689 tid=tid,
690 Class=((n == 0 or n == 3) and 'hiddenRow' or 'none'),
#######
For some reason the type of variable is different between o to e, as you can see below:
(Pdb) type(o)
<type 'unicode'>
(Pdb) type(e)
<type 'str'>
(Pdb) o + e
*** UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 123639: ordinal not in range(128)
Actual results:
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
result.
File "/usr/lib/
sink.
File "/usr/lib/
self.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
report = self._generate_
File "/usr/lib/
self.
File "/usr/lib/
output=
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 123639: ordinal not in range(128)
Changed in os-testr: | |
assignee: | nobody → Liron Kuchlani (lkuchlan) |
Changed in os-testr: | |
status: | New → In Progress |
This behavior only happens in python2