Don't use dict.iterkeys()

Replace list(dict.iterkeys()) with list(dict). The call to iterkeys() is
useless and the iterkeys() method of dictionaries was removed in
Python 3

Change-Id: I16733643d4b92fe8134eec2549bbd679fe75fb9c
This commit is contained in:
Victor Stinner 2015-05-25 16:30:23 +02:00
parent c2db466995
commit 065c56de71

View File

@ -274,7 +274,7 @@ class NovaTestResult(testtools.TestResult):
self.stopTestRun()
def stopTestRun(self):
for cls in list(self.results.iterkeys()):
for cls in list(self.results):
self.writeTestCase(cls)
self.stream.writeln()
self.writeSlowTests()