Show More
@@ -2093,13 +2093,17 b' class TextTestRunner(unittest.TextTestRu' | |||||
2093 | for tc, __ in testcases: |
|
2093 | for tc, __ in testcases: | |
2094 | if tc.name in timesd: |
|
2094 | if tc.name in timesd: | |
2095 | diff = result.faildata.get(tc.name, b'') |
|
2095 | diff = result.faildata.get(tc.name, b'') | |
|
2096 | try: | |||
|
2097 | diff = diff.decode('unicode_escape') | |||
|
2098 | except UnicodeDecodeError as e: | |||
|
2099 | diff = '%r decoding diff, sorry' % e | |||
2096 | tres = {'result': res, |
|
2100 | tres = {'result': res, | |
2097 | 'time': ('%0.3f' % timesd[tc.name][2]), |
|
2101 | 'time': ('%0.3f' % timesd[tc.name][2]), | |
2098 | 'cuser': ('%0.3f' % timesd[tc.name][0]), |
|
2102 | 'cuser': ('%0.3f' % timesd[tc.name][0]), | |
2099 | 'csys': ('%0.3f' % timesd[tc.name][1]), |
|
2103 | 'csys': ('%0.3f' % timesd[tc.name][1]), | |
2100 | 'start': ('%0.3f' % timesd[tc.name][3]), |
|
2104 | 'start': ('%0.3f' % timesd[tc.name][3]), | |
2101 | 'end': ('%0.3f' % timesd[tc.name][4]), |
|
2105 | 'end': ('%0.3f' % timesd[tc.name][4]), | |
2102 |
'diff': diff |
|
2106 | 'diff': diff, | |
2103 | } |
|
2107 | } | |
2104 | else: |
|
2108 | else: | |
2105 | # blacklisted test |
|
2109 | # blacklisted test |
General Comments 0
You need to be logged in to leave comments.
Login now