run-tests: record faildata using bytes instead of str

lines is already bytes, so this is just fixing a bug on python 3.
This commit is contained in:
Augie Fackler 2015-04-14 16:21:10 -04:00
parent 4b472c4d53
commit 431689beb7

View File

@ -1304,7 +1304,7 @@ class TestResult(unittest._TextTestResult):
rename(test.errpath, '%s.out' % test.path)
accepted = True
if not accepted and not failed:
self.faildata[test.name] = ''.join(lines)
self.faildata[test.name] = b''.join(lines)
return accepted