Commit 0c02573f authored by Elliott Sales de Andrade's avatar Elliott Sales de Andrade Committed by Albert Astals Cid

regtest: Fix iteration through dictionary on Py3.

parent 98a84ba8
...@@ -296,15 +296,11 @@ class HTMLReport: ...@@ -296,15 +296,11 @@ class HTMLReport:
results[root] = TestResult(self._docsdir, self._refsdir, self._outdir, root, files, backends) results[root] = TestResult(self._docsdir, self._refsdir, self._outdir, root, files, backends)
tests = results.keys()
tests.sort()
failed_anchors = [] failed_anchors = []
failed = "" failed = ""
crashed = "" crashed = ""
failed_to_run = "" failed_to_run = ""
for test_name in tests: for test_name, test in sorted(results.items()):
test = results[test_name]
if test.is_failed(): if test.is_failed():
failed_anchors.append(test.get_test()) failed_anchors.append(test.get_test())
failed += test.get_failed_html() failed += test.get_failed_html()
......
...@@ -84,8 +84,7 @@ def print_help(): ...@@ -84,8 +84,7 @@ def print_help():
pass pass
print("Commands are:") print("Commands are:")
commands = [(x.name, x.description) for x in _commands.values()] commands = sorted((x.name, x.description) for x in _commands.values())
commands.sort()
for name, description in commands: for name, description in commands:
print(" %-15s %s" % (name, description)) print(" %-15s %s" % (name, description))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment