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