##// END OF EJS Templates
run-tests: when building json, use result.failures instead of result.faildata...
Pierre-Yves David -
r24980:2dadd81c default
parent child Browse files
Show More
@@ -1542,12 +1542,12 b' class TextTestRunner(unittest.TextTestRu'
1542 'csys': ('%0.3f' % timesd[tc.name][2])}
1542 'csys': ('%0.3f' % timesd[tc.name][2])}
1543 outcome[tc.name] = testresult
1543 outcome[tc.name] = testresult
1544
1544
1545 for tc, err in sorted(result.faildata.iteritems()):
1545 for tc, error in result.failures:
1546 testresult = {'result': 'failure',
1546 testresult = {'result': 'failure',
1547 'time': ('%0.3f' % timesd[tc][0]),
1547 'time': ('%0.3f' % timesd[tc.name][0]),
1548 'cuser': ('%0.3f' % timesd[tc][1]),
1548 'cuser': ('%0.3f' % timesd[tc.name][1]),
1549 'csys': ('%0.3f' % timesd[tc][2])}
1549 'csys': ('%0.3f' % timesd[tc.name][2])}
1550 outcome[tc] = testresult
1550 outcome[tc.name] = testresult
1551
1551
1552 for tc, reason in result.skipped:
1552 for tc, reason in result.skipped:
1553 testresult = {'result': 'skip',
1553 testresult = {'result': 'skip',
General Comments 0
You need to be logged in to leave comments. Login now