From d283223c56d5903e2cff852a2a56feb1cceac34d Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 14 Apr 2016 09:34:10 +0200 Subject: [PATCH] Python 3 update for processing tests --- python/plugins/processing/tests/AlgorithmsTestBase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/plugins/processing/tests/AlgorithmsTestBase.py b/python/plugins/processing/tests/AlgorithmsTestBase.py index 21c8de29f32..d41eb5805c2 100644 --- a/python/plugins/processing/tests/AlgorithmsTestBase.py +++ b/python/plugins/processing/tests/AlgorithmsTestBase.py @@ -76,10 +76,10 @@ class AlgorithmsTest: for param in zip(alg.parameters, params): param[0].setValue(param[1]) else: - for k, p in params.iteritems(): + for k, p in params.items(): alg.setParameterValue(k, p) - for r, p in defs['results'].iteritems(): + for r, p in defs['results'].items(): alg.setOutputValue(r, self.load_result_param(p)) expectFailure = False @@ -109,7 +109,7 @@ class AlgorithmsTest: if isinstance(params, list): return [self.load_param(p) for p in params] elif isinstance(params, dict): - return {key: self.load_param(p) for key, p in params.iteritems()} + return {key: self.load_param(p) for key, p in params.items()} else: return params @@ -178,7 +178,7 @@ class AlgorithmsTest: """ Checks if result produced by an algorithm matches with the expected specification. """ - for id, expected_result in expected.iteritems(): + for id, expected_result in expected.items(): if 'vector' == expected_result['type']: expected_lyr = self.load_layer(expected_result) try: