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:
parent
c2db466995
commit
065c56de71
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user