tests/run-tests.py
changeset 25049 55f1ac2797cc
parent 25048 6b8ddf896463
child 25050 28526bb5b3b5
equal deleted inserted replaced
25048:6b8ddf896463 25049:55f1ac2797cc
  1524                     for tc in result.successes:
  1524                     for tc in result.successes:
  1525                         t = doc.createElement('testcase')
  1525                         t = doc.createElement('testcase')
  1526                         t.setAttribute('name', tc.name)
  1526                         t.setAttribute('name', tc.name)
  1527                         t.setAttribute('time', '%.3f' % timesd[tc.name])
  1527                         t.setAttribute('time', '%.3f' % timesd[tc.name])
  1528                         s.appendChild(t)
  1528                         s.appendChild(t)
  1529                     for tc, err in sorted(result.faildata.iteritems()):
  1529                     for tc, err in sorted(result.faildata.items()):
  1530                         t = doc.createElement('testcase')
  1530                         t = doc.createElement('testcase')
  1531                         t.setAttribute('name', tc)
  1531                         t.setAttribute('name', tc)
  1532                         t.setAttribute('time', '%.3f' % timesd[tc])
  1532                         t.setAttribute('time', '%.3f' % timesd[tc])
  1533                         # createCDATASection expects a unicode or it will
  1533                         # createCDATASection expects a unicode or it will
  1534                         # convert using default conversion rules, which will
  1534                         # convert using default conversion rules, which will