diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2015-10-09 16:51:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-11 22:10:23 +0900 |
commit | 2c92a0a0ebe1d94b39dbda8892050ce7a8f0e42b (patch) | |
tree | 9d1bbcff6a19b256db0d9b58e95b61f95cba76ff | |
parent | fb9d3cdb812d0a40b1f3bff9d3b7fda024634cf7 (diff) |
tester: Adapt to Python3 dictview
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/switch/tester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index 5087614b..f5bbd53b 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 |