run-tests: use items instead of iteritems on dicts
authorAugie Fackler <augie@google.com>
Mon, 13 Apr 2015 16:31:19 -0400
changeset 25049 55f1ac2797cc
parent 25048 6b8ddf896463
child 25050 28526bb5b3b5
run-tests: use items instead of iteritems on dicts This works the same-enough on 2.6 and 3.5 to be fine.
tests/run-tests.py
--- a/tests/run-tests.py	Mon Apr 13 16:30:40 2015 -0400
+++ b/tests/run-tests.py	Mon Apr 13 16:31:19 2015 -0400
@@ -1526,7 +1526,7 @@
                         t.setAttribute('name', tc.name)
                         t.setAttribute('time', '%.3f' % timesd[tc.name])
                         s.appendChild(t)
-                    for tc, err in sorted(result.faildata.iteritems()):
+                    for tc, err in sorted(result.faildata.items()):
                         t = doc.createElement('testcase')
                         t.setAttribute('name', tc)
                         t.setAttribute('time', '%.3f' % timesd[tc])