Signed-off-by: IWASE Yusuke <[email protected]>
---
ryu/tests/switch/tester.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py
index 5087614..f5bbd53 100644
--- a/ryu/tests/switch/tester.py
+++ b/ryu/tests/switch/tester.py
@@ -419,7 +419,7 @@ class OfTester(app_manager.RyuApp):
test_report = {}
self.logger.info('--- Test start ---')
- test_keys = tests.keys()
+ test_keys = list(tests.keys())
test_keys.sort()
for file_name in test_keys:
report = self._test_file_execute(tests[file_name])
@@ -561,7 +561,7 @@ class OfTester(app_manager.RyuApp):
def _output_test_report(self, report):
self.logger.info('%s--- Test report ---', os.linesep)
error_count = 0
- for result_type in sorted(report.keys()):
+ for result_type in sorted(list(report.keys())):
test_descriptions = report[result_type]
if result_type == TEST_OK:
continue
--
1.9.1
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel